Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130878
b: refs/heads/master
c: ff01b91
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and David S. Miller committed Feb 3, 2009
1 parent 8a9330c commit 81ae2b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 46578a6913e6f5e69229561736b94c18c2e88ae4
refs/heads/master: ff01b9163655ace76b29b7ff2f56b25c32f795da
4 changes: 2 additions & 2 deletions trunk/drivers/net/cassini.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ static int cas_reset_mii_phy(struct cas *cp)

cas_phy_write(cp, MII_BMCR, BMCR_RESET);
udelay(100);
while (limit--) {
while (--limit) {
val = cas_phy_read(cp, MII_BMCR);
if ((val & BMCR_RESET) == 0)
break;
Expand Down Expand Up @@ -979,7 +979,7 @@ static void cas_phy_init(struct cas *cp)
writel(val, cp->regs + REG_PCS_MII_CTRL);

limit = STOP_TRIES;
while (limit-- > 0) {
while (--limit > 0) {
udelay(10);
if ((readl(cp->regs + REG_PCS_MII_CTRL) &
PCS_MII_RESET) == 0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/sungem_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static int reset_one_mii_phy(struct mii_phy* phy, int phy_id)

udelay(100);

while (limit--) {
while (--limit) {
val = __phy_read(phy, phy_id, MII_BMCR);
if ((val & BMCR_RESET) == 0)
break;
Expand Down

0 comments on commit 81ae2b8

Please sign in to comment.