]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: Fix overlong PHY timeout
authorAndre Przywara <andre.przywara@arm.com>
Fri, 3 Jan 2020 22:08:47 +0000 (22:08 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Mar 2020 23:11:24 +0000 (18:11 -0500)
commit71ab12c522357fa1617d77d795f5fd17ed68e470
tree097b808b806437c6a4299d8d10586d2a52a281a1
parent5a486d9ccca96c313bb7d580f500e9357d348f72
net: phy: Fix overlong PHY timeout

Commit 038ea7521a45 ("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 <andre.przywara@arm.com>
Fixes: net: phy: Increase link up delay in genphy_update_link() ("038ea7521a45")
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c