| To: | jgarzik@xxxxxxxxx |
|---|---|
| Subject: | [PATCH] emac: fix mdio delay |
| From: | Matt Porter <mporter@xxxxxxxxxxxxxxxxxxx> |
| Date: | Tue, 8 Feb 2005 22:43:45 -0700 |
| Cc: | ralphs@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx, linuxppc-embedded@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
Fixes MDIO delay. Please apply.
Signed-off-by: Ralph Siemsen <ralphs@xxxxxxxxxxxxx>
Signed-off-by: Matt Porter <mporter@xxxxxxxxxxxxxxxxxxx>
--- 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));
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] emac: fix jumbo frame support, Matt Porter |
|---|---|
| Next by Date: | Re: [2/2] [NET] Add skb_header_cloned and use it in e1000/tg3, Herbert Xu |
| Previous by Thread: | [PATCH] emac: fix jumbo frame support, Matt Porter |
| Next by Thread: | Re: 2.6.10 TCP troubles -- suggested patch, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |