diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-17 16:39:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-19 23:52:34 +0300 |
commit | 2a10ab043ac5a658225ee77852db7942de9ac4c5 (patch) | |
tree | dac8f7e464e0298ace40ea4c2f6f7e87307739e3 /include/linux | |
parent | af006240c6cfea9f52fc197ac26e6cade4a8623d (diff) | |
download | linux-2a10ab043ac5a658225ee77852db7942de9ac4c5.tar.xz |
net: phy: add genphy_check_and_restart_aneg()
Add a helper for restarting autonegotiation(), similar to the clause 45
variant. Use it in __genphy_config_aneg()
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-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 5032d453ac66..1c4f97d2631d 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1094,6 +1094,7 @@ void phy_attached_info(struct phy_device *phydev); int genphy_read_abilities(struct phy_device *phydev); int genphy_setup_forced(struct phy_device *phydev); int genphy_restart_aneg(struct phy_device *phydev); +int genphy_check_and_restart_aneg(struct phy_device *phydev, bool restart); int genphy_config_eee_advert(struct phy_device *phydev); int __genphy_config_aneg(struct phy_device *phydev, bool changed); int genphy_aneg_done(struct phy_device *phydev); |