[linux-cirrus] Re: EP93XX Ethernet autonegotiation hangs till link is up

  • From: Robert Whaley <rwhaley@xxxxxxxxxxxxxxx>
  • To: linux-cirrus@xxxxxxxxxxxxx
  • Date: Wed, 27 Jul 2005 09:14:24 -0400

Michael Burian wrote:

Robert Whaley wrote:

Michael Burian wrote:


[3]
Please tell me immediately if there is something newer available.


I, don't have a whole newer driver, but I hope this fix isn't too late for the ethernet driver.



It's never too late - as long as somebody maintains it.


I've found that the ethernet cannot be brought up more than once.  IE:
If the eth0 is brought down and then back up, it no longer works.  A fix
is to add:

  enable_irq(pD->irq);

just before the return in the function eth_enable.



Ah, I see - consider it applied - no need for a patch
if this was the only modification.

Thanks


Subsequent testing shows that while this works functionally, it will result in a warning message the first time the interface is brought up. That may be a small price to pay, since without this change the interface cannot be brought up a second or third... time.


To avoid this warning add a disable_irq call in the probe function - but be careful not to disable irqs each time the probe function is called, only call disable_irq after the sole successful call to the probe function!

--
Robert Whaley
Applied Data Systems            www.applieddata.net
434-244-9504                rwhaley@xxxxxxxxxxxxxxx

Other related posts: