Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86439
b: refs/heads/master
c: 7a7d23d
h: refs/heads/master
i:
  86437: 3e9a1af
  86435: 9ab754d
  86431: ab75be4
v: v3
  • Loading branch information
Grant Grundler authored and Jeff Garzik committed Feb 24, 2008
1 parent 32b9038 commit 7e20e90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: 740db6d7f5bf194abf327613a5a500e3729fc19a
refs/heads/master: 7a7d23dac29825a75e375800573d53e49d864a42
12 changes: 11 additions & 1 deletion trunk/drivers/net/tulip/uli526x.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,11 @@ static void uli526x_init(struct net_device *dev)
struct uli526x_board_info *db = netdev_priv(dev);
unsigned long ioaddr = db->ioaddr;
u8 phy_tmp;
u8 timeout;
u16 phy_value;
u16 phy_reg_reset;


ULI526X_DBUG(0, "uli526x_init()", 0);

/* Reset M526x MAC controller */
Expand All @@ -509,11 +511,19 @@ static void uli526x_init(struct net_device *dev)
/* Parser SROM and media mode */
db->media_mode = uli526x_media_mode;

/* Phyxcer capability setting */
/* phyxcer capability setting */
phy_reg_reset = phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id);
phy_reg_reset = (phy_reg_reset | 0x8000);
phy_write(db->ioaddr, db->phy_addr, 0, phy_reg_reset, db->chip_id);

/* See IEEE 802.3-2002.pdf (Section 2, Chapter "22.2.4 Management
* functions") or phy data sheet for details on phy reset
*/
udelay(500);
timeout = 10;
while (timeout-- &&
phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id) & 0x8000)
udelay(100);

/* Process Phyxcer Media Mode */
uli526x_set_phyxcer(db);
Expand Down

0 comments on commit 7e20e90

Please sign in to comment.