Eric BENARD / Free wrote:
Michael Burian wrote:...snip...
Any ideas what should be done instead of while(1)?
hi,
I met the same problem and added a timeout like this :
U16 count=0;
while (1) { val = phy_rd(1); /* read BM status Reg*/ if ( val&0x0020) /* if Auto_Neg_complete?*/ { break; } else { if (count >= 3) { return -1; } mdelay(1000);//delay 1 second. count++; } }
-- Simon Poole www.appliancestudio.com