diff options
Diffstat (limited to 'drivers/net/starfire.c')
-rw-r--r-- | drivers/net/starfire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index 1902f4fabde1..f54ac2389da2 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c | |||
@@ -880,9 +880,9 @@ static int mdio_read(struct net_device *dev, int phy_id, int location) | |||
880 | void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2); | 880 | void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2); |
881 | int result, boguscnt=1000; | 881 | int result, boguscnt=1000; |
882 | /* ??? Should we add a busy-wait here? */ | 882 | /* ??? Should we add a busy-wait here? */ |
883 | do | 883 | do { |
884 | result = readl(mdio_addr); | 884 | result = readl(mdio_addr); |
885 | while ((result & 0xC0000000) != 0x80000000 && --boguscnt > 0); | 885 | } while ((result & 0xC0000000) != 0x80000000 && --boguscnt > 0); |
886 | if (boguscnt == 0) | 886 | if (boguscnt == 0) |
887 | return 0; | 887 | return 0; |
888 | if ((result & 0xffff) == 0xffff) | 888 | if ((result & 0xffff) == 0xffff) |