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)
commit0d30bbd03d8483548bed1fc1e96fc6cfd10248b1
tree7847cadc30ef48d4c2da76e15533266889ee027a
parent27aa6228d6d64922bc726e7853271bc9b4d5571f
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