]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f3713e626e7fd06c9bec86df3049158e1a8a861
treec7ec78419603ec1867d8f6a4361e4ba6dd2253b0
parent6ee5d0bde406e884e43b868c3fa48ae44752f171
parent3291ee27025ed942ad7287eb605af6764f9942e8
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>