]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: extract pause mode
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 4 Oct 2019 16:06:09 +0000 (17:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Oct 2019 01:11:08 +0000 (18:11 -0700)
commit8e84a80b53820e8429759ace60ca7c8b9f90b9c0
tree4c5811a9dd2e5b1898f232cce1cc8379bf0cc9ac
parent06adb7bab7eebed2f8bbb74c50f135969ad369e5
net: phy: extract pause mode

Extract the update of phylib's software pause mode state from
genphy_read_status(), so that we can re-use this functionality with
PHYs that have alternative ways to read the negotiation results.

Tested-by: tinywrkb <tinywrkb@gmail.com>
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/phy-core.c
include/linux/phy.h