From 61ba1419666aaf9734efc10b5d35467476b48b41 Mon Sep 17 00:00:00 2001 From: Shenwei Wang Date: Tue, 27 Apr 2021 11:27:28 -0500 Subject: [PATCH] LF-3469: net: phy: at803x: Disable PHY hibernation during init The Atheros 803x PHY will go to hibernate mode after 10 seconds if no activity on the link. When in hibernation, it will not provide any clock to the MAC. This caused issue when trying to bring up the interface when no cable was connected: MAC driver would timeout, and the PHY power domain would stay on. It is also possible that this caused issues with EEE capable remote PHY. Disabling this feature during initialization to avoid potential side effects. Signed-off-by: Seb Haezebrouck Reviewed-by: Shenwei Wang --- drivers/net/phy/at803x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index 652a5d026d35..b2e54bf47109 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -681,6 +681,8 @@ static int at803x_config_init(struct phy_device *phydev) return ret; } + at803x_debug_reg_mask(phydev, 0xB, BIT(15), 0); + return 0; } -- 2.17.1