diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-10-04 12:06:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 21:11:08 -0400 |
commit | 2d880b8709c013d47472f85a9d42ea1aca3bce47 (patch) | |
tree | 4c5811a9dd2e5b1898f232cce1cc8379bf0cc9ac /include/linux/phy.h | |
parent | 8d3dc3ac9dd6801c732a72ca6979698c38451b4f (diff) |
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>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 7abee820d05c..9a0e981df502 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
@@ -678,6 +678,7 @@ static inline bool phy_is_started(struct phy_device *phydev) | |||
678 | return phydev->state >= PHY_UP; | 678 | return phydev->state >= PHY_UP; |
679 | } | 679 | } |
680 | 680 | ||
681 | void phy_resolve_aneg_pause(struct phy_device *phydev); | ||
681 | void phy_resolve_aneg_linkmode(struct phy_device *phydev); | 682 | void phy_resolve_aneg_linkmode(struct phy_device *phydev); |
682 | 683 | ||
683 | /** | 684 | /** |