OSDN Git Service

net: phy: broadcom: Add power down exit reset state delay
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 11 Mar 2021 04:53:42 +0000 (20:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 02:25:19 +0000 (18:25 -0800)
commit7a1468ba0e02eee24ae1353e8933793a27198e20
tree4e150071bc1745907e2be70deb557ff0080e73dc
parenta9f81244d2e33e6dfcef120fefd30c96b3f7cdb0
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: fe26821fa614 ("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>
drivers/net/phy/broadcom.c