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

  • From: Eric BENARD / Free <ebenard@xxxxxxx>
  • To: linux-cirrus@xxxxxxxxxxxxx
  • Date: Mon, 11 Jul 2005 15:03:15 +0200

Michael Burian wrote:
> Random thoughts:
> 
> I'm not sure if this is the right way
> 
nor am I ;-)

> If the above code works we might be able to completely remove the
> while(1) and "if(25" loop.
> 
Of course, it was a dirty patch which allowed to unlock the situation on
a friday evening before leaving for holidays ;-)
Also, the 25 value is a pure random value.

> I doubt that something that fails after mdelay(100) will work after
> (mdelay(100) + time_needed_to_execute_phy_rd_25_times), as
> time_needed_to_execute_phy_rd_25_times should be next to zero, right?
> 
yes, a mdelay should be added in the while loop.

Eric

Other related posts: