Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179079
b: refs/heads/master
c: c064efc
h: refs/heads/master
i:
  179077: 29b1782
  179075: 8ccfc5c
  179071: 268e057
v: v3
  • Loading branch information
roel kluin authored and David S. Miller committed Jan 4, 2010
1 parent 16c82d1 commit 6a21191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ce739b473ce12d5ef067b39b8637bfd2b2174a15
refs/heads/master: c064efca9211d12bb9e6de8718fc39884eb883f2
4 changes: 2 additions & 2 deletions trunk/drivers/net/usb/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ static int read_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 * reg)
get_registers(dev, PHYCNT, 1, data);
} while ((data[0] & PHY_GO) && (i++ < MII_TIMEOUT));

if (i < MII_TIMEOUT) {
if (i <= MII_TIMEOUT) {
get_registers(dev, PHYDAT, 2, data);
*reg = data[0] | (data[1] << 8);
return 0;
Expand All @@ -295,7 +295,7 @@ static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg)
get_registers(dev, PHYCNT, 1, data);
} while ((data[0] & PHY_GO) && (i++ < MII_TIMEOUT));

if (i < MII_TIMEOUT)
if (i <= MII_TIMEOUT)
return 0;
else
return 1;
Expand Down

0 comments on commit 6a21191

Please sign in to comment.