sis190: mdio operation failure is not correctly detected
i ranges from 0 to 100 in the 'for' loop a few lines above. Reported by davem. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: K.M. Liu <kmliu@sis.com.tw>
This commit is contained in:
parent
11913d30b9
commit
7bf3f232f7
|
@ -372,7 +372,7 @@ static void __mdio_cmd(void __iomem *ioaddr, u32 ctl)
|
|||
msleep(1);
|
||||
}
|
||||
|
||||
if (i > 999)
|
||||
if (i > 99)
|
||||
printk(KERN_ERR PFX "PHY command failed !\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue