All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralph Siemsen <rsiemsen@rossvideo.com>
To: linuxppc-embedded@ozlabs.org
Subject: [PATCH] ibm_emac missed fix
Date: Thu, 20 Jan 2005 15:54:17 -0500	[thread overview]
Message-ID: <41F01A79.7090201@rossvideo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

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 <ralphs@netwinder.org>

[-- Attachment #2: emac.patch --]
[-- Type: text/plain, Size: 517 bytes --]

--- 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));
 

                 reply	other threads:[~2005-01-20 21:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41F01A79.7090201@rossvideo.com \
    --to=rsiemsen@rossvideo.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.