]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add helper to convert negotiation result to phy settings
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Dec 2017 12:46:38 +0000 (12:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 20:00:50 +0000 (15:00 -0500)
commit31ed59b8b2e42066a5deaaf9ff0ffea99c64ada9
treeb0c6bc880e95cbf7cf3a59466b18e6838cc687b3
parent7dc05f1834eafbbcfa1a4b35ac87ee1ecc261651
net: phy: add helper to convert negotiation result to phy settings

Add a helper to convert the result of the autonegotiation advertisment
into the PHYs speed and duplex settings.  If the result is full duplex,
also extract the pause mode settings from the link partner advertisment.

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/phy-core.c
include/linux/phy.h