OSDN Git Service

net: phy: marvell10g: read copper results from CSSR1
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 27 Feb 2020 09:46:36 +0000 (09:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:21:33 +0000 (11:21 -0800)
commitc84786fa8f912e1450727f49375b3f0fe2b13afc
tree7779af46d98d8b09982a4ee4fa4e498e2d2b9421
parentbe64e397c7d01ba81173c4d67a1ad318cd70251e
net: phy: marvell10g: read copper results from CSSR1

Read the copper autonegotiation results from the copper specific
status register, rather than decoding the advertisements. Reading
what the link is actually doing will allow us to support downshift
modes.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c