]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: add support for half duplex 100M and 10M
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Dec 2017 12:46:43 +0000 (12:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 20:00:50 +0000 (15:00 -0500)
commit5434307dc1e49959f0fabb178eb921d04c730855
tree87d806a67ec3ecf3b84d9af0c70ca69b33265745
parent31ed59b8b2e42066a5deaaf9ff0ffea99c64ada9
net: phy: marvell10g: add support for half duplex 100M and 10M

Add support for half-duplex 100M and 10M copper connections by parsing
the advertisment results rather than trying to decode the negotiated
speed from one of the PHYs "vendor" registers.  This allows us to
decode the duplex as well, which means we can support half-duplex mode
for the slower speeds.

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