]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Allow PCS registers to be retrieved via ethtool
authorAndrew Lunn <andrew@lunn.ch>
Sun, 16 Feb 2020 17:54:13 +0000 (18:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 04:00:21 +0000 (20:00 -0800)
commit7d880bef7e03e3047d34b988aa8562d3c8667edd
tree7847cadc30ef48d4c2da76e15533266889ee027a
parente57aa8483fe5f204360f3c46d8bb68077e4c6b14
net: dsa: mv88e6xxx: Allow PCS registers to be retrieved via ethtool

ethtool provides a generic mechanism for a driver to return the
registers of an ethernet device. DSA uses this to give the port
registers associated with an interfaces. Extend this to allow PCS
registers to also be returned, if the port has a PCS associated to it.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h