]> Git Repo - J-u-boot.git/commit - drivers/net/phy/phy.c
net: phy: Fix overlong PHY timeout
authorAndre Przywara <[email protected]>
Fri, 3 Jan 2020 22:08:47 +0000 (22:08 +0000)
committerJoe Hershberger <[email protected]>
Mon, 9 Mar 2020 23:11:24 +0000 (18:11 -0500)
commita44ee246c570deb9190214d0711057a86b0f6a86
tree097b808b806437c6a4299d8d10586d2a52a281a1
parent21e4ee3c9cbbcd639ebad1bb811788804047096f
net: phy: Fix overlong PHY timeout

Commit 27c3f70f3b50 ("net: phy: Increase link up delay in
genphy_update_link()") increased the per-iteration waiting time from
1ms to 50ms, without adjusting the timeout counter. This lead to the
timeout increasing from the typical 4 seconds to over three minutes.

Adjust the timeout counter evaluation by that factor of 50 to bring the
timeout back to the intended value.

Signed-off-by: Andre Przywara <[email protected]>
Fixes: net: phy: Increase link up delay in genphy_update_link() ("27c3f70f3b50")
Reviewed-by: Stefan Roese <[email protected]>
Tested-by: Matthias Brugger <[email protected]>
Tested-by: Simon Goldschmidt <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/phy/phy.c
This page took 0.027333 seconds and 4 git commands to generate.