From 293c378f74821bfabf25417ae4af3b59d556597a Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 13 Jan 2017 11:17:30 +0000 Subject: net: phy: hook up clause 45 autonegotiation restart genphy_restart_aneg() can only restart autonegotiation on clause 22 PHYs. Add a phy_restart_aneg() function which selects between the clause 22 and clause 45 restart functionality depending on the PHY type. Signed-off-by: Russell King --- include/linux/phy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/phy.h b/include/linux/phy.h index 735ff1f98db3..45dfe1b2b003 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -793,6 +793,7 @@ int phy_start_aneg(struct phy_device *phydev); int phy_aneg_done(struct phy_device *phydev); int phy_stop_interrupts(struct phy_device *phydev); +int phy_restart_aneg(struct phy_device *phydev); static inline int phy_read_status(struct phy_device *phydev) { -- cgit