OSDN Git Service

Merge branch 'mv88e6xxx-Add-devlink-regions-support'
authorDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 01:19:42 +0000 (18:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 01:19:42 +0000 (18:19 -0700)
commita5a3303e26cdf6867bc1f4cdd3f0a56673d70ea7
treec7ec78419603ec1867d8f6a4361e4ba6dd2253b0
parent0db0561d13df07978bea63a19f644fc16a60f54a
parent93157307f7b4e11232d972d325ab688f1a08f487
Merge branch 'mv88e6xxx-Add-devlink-regions-support'

Andrew Lunn says:

====================
mv88e6xxx: Add devlink regions support

Make use of devlink regions to allow read access to some of the
internal of the switches. Currently access to global1, global2 and the
ATU is provided.

The switch itself will never trigger a region snapshot, it is assumed
it is performed from user space as needed.

v2:
Remove left of debug print
Comment ATU format is generic to mv88e6xxx
Combine declaration and the assignment on a single line.

v3:
Drop support for port regions
Improve the devlink API with a priv member and passing the region to
the snapshot function
Make the helper to convert from devlink to ds an inline function

v4:
Add missing kerneldoc in ICE driver
Fix typo for global2 reading global1 registers
Make use of enum to make code more readable
====================

Signed-off-by: David S. Miller <davem@davemloft.net>