From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server06.rossvideo.com (unknown [209.87.241.202]) by ozlabs.org (Postfix) with ESMTP id EFE3467A6F for ; Fri, 21 Jan 2005 08:06:27 +1100 (EST) Message-ID: <41F01A79.7090201@rossvideo.com> Date: Thu, 20 Jan 2005 15:54:17 -0500 From: Ralph Siemsen MIME-Version: 1.0 To: linuxppc-embedded@ozlabs.org Content-Type: multipart/mixed; boundary="------------030607050801030601040100" Subject: [PATCH] ibm_emac missed fix List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------030607050801030601040100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit The following minor fix was posted here some months ago but hasn't found its way in to 2.6.10 or current bk. Signed-off-by: Ralph Siemsen --------------030607050801030601040100 Content-Type: text/plain; name="emac.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="emac.patch" --- linux-2.6.10-orig/drivers/net/ibm_emac/ibm_emac_core.c 2005-01-20 15:45:28.576226303 -0500 +++ linux-2.6.10/drivers/net/ibm_emac/ibm_emac_core.c 2005-01-20 15:25:10.430674655 -0500 @@ -475,8 +479,9 @@ out_be32(&emacp->em0stacr, stacr); - while (((stacr = in_be32(&emacp->em0stacr) & EMAC_STACR_OC) == 0) - && (count++ < 5000)) + count = 0; + while ((((stacr = in_be32(&emacp->em0stacr)) & EMAC_STACR_OC) == 0) + && (count++ < MDIO_DELAY)) udelay(1); MDIO_DEBUG((" (count was %d)\n", count)); --------------030607050801030601040100--