From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Sat, 06 Feb 2010 23:06:03 -0800 Subject: [U-Boot] [PATCH] net: Use 0.5 sec timeout in miiphy_reset() instead of counting loop In-Reply-To: <1265114628-14041-1-git-send-email-sr@denx.de> References: <1265114628-14041-1-git-send-email-sr@denx.de> Message-ID: <4B6E665B.7030201@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stefan, On 2/2/2010 4:43 AM, Stefan Roese wrote: > 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 > Cc: Ben Warren > --- > common/miiphyutil.c | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > Applied to net repo. thanks, Ben