Corrected: --- linux/drivers/net/e100.c.orig 2006-01-24 09:20:44.000000000 +0100 +++ linux/drivers/net/e100.c 2006-01-24 09:21:55.000000000 +0100 @@ -884,10 +884,10 @@ * procedure it should be done under lock. */ spin_lock_irqsave(&nic->mdio_lock, flags); - for (i = 100; i; --i) { + for (i = 1000; i; --i) { if (readl(&nic->csr->mdi_ctrl) & mdi_ready) break; - udelay(20); + udelay(2); } if (unlikely(!i)) { printk("e100.mdio_ctrl(%s) won't go Ready\n", @@ -897,10 +897,10 @@ } writel((reg << 16) | (addr << 21) | dir | data, &nic->csr->mdi_ctrl); - for (i = 0; i < 100; i++) { - udelay(20); + for (i = 0; i < 1000; i++) { if ((data_out = readl(&nic->csr->mdi_ctrl)) & mdi_ready) break; + udelay(2); } spin_unlock_irqrestore(&nic->mdio_lock, flags); DPRINTK(HW, DEBUG, -- J.A. Magallon <jamagallon()able!es> \ Software is like sex: werewolf!able!es \ It's better when it's free Mandriva Linux release 2006.1 (Cooker) for i586 Linux 2.6.16-jam1 (gcc 4.0.3 (4.0.3-1mdk for Mandriva Linux release 2006.1))
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] Lower e100 latency
- From: "Jesse Brandeburg" <[email protected]>
- Re: [PATCH] Lower e100 latency
- References:
- 2.6.16-mm1
- From: Andrew Morton <[email protected]>
- Re: 2.6.16-mm1
- From: "J.A. Magallon" <[email protected]>
- [PATCH] Lower e100 latency
- From: "J.A. Magallon" <[email protected]>
- Re: [PATCH] Lower e100 latency
- From: Jeff Garzik <[email protected]>
- 2.6.16-mm1
- Prev by Date: Re: [PATCH] Dont build altivec raid on x86
- Next by Date: 2.6.16-rt10 crash on ppc
- Previous by thread: Re: [PATCH] Lower e100 latency
- Next by thread: Re: [PATCH] Lower e100 latency
- Index(es):