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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:31:58 +0000 (14:31 +0200)
commite64a5a5b8e93a4064da38cde8b25e68750c60d54
tree9784cc76022ca8b950340c6ecc1ef9c32db2a30d
parent87378c850fee4f41f3d816aeaa0b5e69f2522f51
net: phy: broadcom: Add power down exit reset state delay

[ Upstream commit 7a1468ba0e02eee24ae1353e8933793a27198e20 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/broadcom.c