Skip to content

Commit

Permalink
net: phy: broadcom: Add power down exit reset state delay
Browse files Browse the repository at this point in the history
[ Upstream commit 7a1468b ]

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ffainelli authored and gregkh committed Mar 30, 2021
1 parent 0aa0860 commit 602e7f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/phy/broadcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,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
*/
fsleep(40);

return bcm54xx_config_init(phydev);
}

Expand Down

0 comments on commit 602e7f3

Please sign in to comment.