Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111918
b: refs/heads/master
c: ac7198b
h: refs/heads/master
v: v3
  • Loading branch information
Andy Fleming authored and Jeff Garzik committed Sep 25, 2008
1 parent ab297ad commit ae87cf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fbb80230bf1c1dcc81339e991b172006243333e9
refs/heads/master: ac7198bb124e7007cfd48990d382678341886dba
14 changes: 8 additions & 6 deletions trunk/drivers/net/gianfar_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,21 @@ static int gfar_mdio_probe(struct device *dev)
gfar_write(&enet_regs->tbipa, 0);
for (i = PHY_MAX_ADDR; i > 0; i--) {
u32 phy_id;
int r;

r = get_phy_id(new_bus, i, &phy_id);
if (r)
return r;
err = get_phy_id(new_bus, i, &phy_id);
if (err)
goto bus_register_fail;

if (phy_id == 0xffffffff)
break;
}

/* The bus is full. We don't support using 31 PHYs, sorry */
if (i == 0)
return -EBUSY;
if (i == 0) {
err = -EBUSY;

goto bus_register_fail;
}

gfar_write(&enet_regs->tbipa, i);

Expand Down

0 comments on commit ae87cf9

Please sign in to comment.