]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: Use 0.5 sec timeout in miiphy_reset() instead of counting loop
authorStefan Roese <sr@denx.de>
Tue, 2 Feb 2010 12:43:48 +0000 (13:43 +0100)
committerBen Warren <biggerbadderben@gmail.com>
Sun, 7 Feb 2010 06:52:21 +0000 (22:52 -0800)
commitab5a0dcb9c8f19e351fc33c5db91469bfb1d9438
tree97785becfaff93d98dd9d04f94312b1a71836a44
parent4294b2485bf0e8d68c893190a96bb0e7856b12c4
net: Use 0.5 sec timeout in miiphy_reset() instead of counting loop

This patch fixes a problem I've notived on a buggy PPC4xx system. This
system has problems with the PHY MDIO communication and seemed to be
stuck/crashed in miiphy_reset(). But degugging revealed, that the CPU
didn't crash, but "only" hung in this counting loop for about 2 minutes.

This patch now uses a real timeout of 0.5 seconds (as mentioned in the
comment in miiphy_reset).

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
common/miiphyutil.c