Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278314
b: refs/heads/master
c: d7d7596
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Kelle authored and David S. Miller committed Dec 1, 2011
1 parent 61872cc commit 53a6c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: b536db9332cf90c4f44ca809f028645205fa89ad
refs/heads/master: d7d75960ea74e524d75ba8b067523471f39a7bf3
13 changes: 3 additions & 10 deletions trunk/drivers/net/ethernet/icplus/ipg.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,9 @@ static void mdio_write(struct net_device *dev, int phy_id, int phy_reg, int val)
}

/* The last cycle is a tri-state, so read from the PHY. */
for (j = 7; j < 8; j++) {
for (i = 0; i < p[j].len; i++) {
ipg_write_phy_ctl(ioaddr, IPG_PC_MGMTCLK_LO | polarity);

p[j].field |= ((ipg_r8(PHY_CTRL) &
IPG_PC_MGMTDATA) >> 1) << (p[j].len - 1 - i);

ipg_write_phy_ctl(ioaddr, IPG_PC_MGMTCLK_HI | polarity);
}
}
ipg_write_phy_ctl(ioaddr, IPG_PC_MGMTCLK_LO | polarity);
ipg_r8(PHY_CTRL);
ipg_write_phy_ctl(ioaddr, IPG_PC_MGMTCLK_HI | polarity);
}

static void ipg_set_led_mode(struct net_device *dev)
Expand Down

0 comments on commit 53a6c89

Please sign in to comment.