From 3fb677c69a15b786354c0d6f69825f3270ec9cc2 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 95f27f1f4dd0..ef3b617eae0b 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -770,6 +770,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