Message ID | 20210311045343.3259383-1-f.fainelli@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7a1468ba0e02eee24ae1353e8933793a27198e20 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,v2] net: phy: broadcom: Add power down exit reset state delay | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | success | CCed 8 of 8 maintainers |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 11 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Wed, 10 Mar 2021 20:53:42 -0800 you wrote: > 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> > > [...] Here is the summary with links: - [net,v2] net: phy: broadcom: Add power down exit reset state delay https://git.kernel.org/netdev/net/c/7a1468ba0e02 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index fa0be591ae79..ad51f1889435 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -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 + */ + fsleep(40); + return bcm54xx_config_init(phydev); }
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> --- Changes in v2: - make it build by using flseep() drivers/net/phy/broadcom.c | 5 +++++ 1 file changed, 5 insertions(+)