Skip to content
Permalink
Browse files
net: phy: broadcom: Add power down exit reset state delay
Per the datasheet, when we clear the power down bit, the PHY remains in
an internal reset state for 40us and then resume normal operation.
Account for that delay to avoid any issues in the future if
genphy_resume() changes.

Fixes: fe26821 ("net: phy: broadcom: Wire suspend/resume for BCM54810")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  • Loading branch information
ffainelli authored and intel-lab-lkp committed Mar 10, 2021
1 parent 8515455 commit 06734c5da3238dad0a1ec26dac3d4698724157ac
Showing 1 changed file with 5 additions and 0 deletions.
@@ -399,6 +399,11 @@ static int bcm54xx_resume(struct phy_device *phydev)
if (ret < 0)
return ret;

/* Upon exiting power down, the PHY remains in an internal reset state
* for 40us
*/
usleep(40);

return bcm54xx_config_init(phydev);
}

0 comments on commit 06734c5

Please sign in to comment.