Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300796
b: refs/heads/master
c: 0c20494
h: refs/heads/master
v: v3
  • Loading branch information
françois romieu authored and David S. Miller committed Apr 18, 2012
1 parent 275c79d commit cf4e8f8
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 584c5e2ad3ada1a5ccfffa68347b79c3681cc36e
refs/heads/master: 0c20494050a848af4479dbaa89e632a8c5903cf3
6 changes: 5 additions & 1 deletion trunk/drivers/net/ethernet/dec/tulip/dmfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ static int dmfe_stop(struct DEVICE *dev)

/* Reset & stop DM910X board */
dw32(DCR0, DM910X_RESET);
udelay(5);
udelay(100);
phy_write(ioaddr, db->phy_addr, 0, 0x8000, db->chip_id);

/* free interrupt */
Expand Down Expand Up @@ -1601,7 +1601,9 @@ static u16 read_srom_word(void __iomem *ioaddr, int offset)
int i;

dw32(DCR9, CR9_SROM_READ);
udelay(5);
dw32(DCR9, CR9_SROM_READ | CR9_SRCS);
udelay(5);

/* Send the Read Command 110b */
srom_clk_write(ioaddr, SROM_DATA_1);
Expand All @@ -1615,6 +1617,7 @@ static u16 read_srom_word(void __iomem *ioaddr, int offset)
}

dw32(DCR9, CR9_SROM_READ | CR9_SRCS);
udelay(5);

for (i = 16; i > 0; i--) {
dw32(DCR9, CR9_SROM_READ | CR9_SRCS | CR9_SRCLK);
Expand All @@ -1626,6 +1629,7 @@ static u16 read_srom_word(void __iomem *ioaddr, int offset)
}

dw32(DCR9, CR9_SROM_READ);
udelay(5);
return srom_data;
}

Expand Down

0 comments on commit cf4e8f8

Please sign in to comment.