Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35311
b: refs/heads/master
c: b518fa8
h: refs/heads/master
i:
  35309: 6031b9d
  35307: c6b8374
  35303: 3e11953
  35295: 8ae6e36
v: v3
  • Loading branch information
Francois Romieu committed Aug 31, 2006
1 parent 459721b commit 8c62dd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 188f4af04618b32b8ec7c630a3f18201c81ce70c
refs/heads/master: b518fa8eac2d0ac497c0fdb27e4cec68d0249bb7
12 changes: 7 additions & 5 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,10 +1623,10 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
RTL_W8(ChipCmd, CmdReset);

/* Check that the chip has finished the reset. */
for (i = 1000; i > 0; i--) {
for (i = 100; i > 0; i--) {
if ((RTL_R8(ChipCmd) & CmdReset) == 0)
break;
udelay(10);
msleep_interruptible(1);
}

/* Identify chip attached to board */
Expand Down Expand Up @@ -1848,10 +1848,10 @@ rtl8169_hw_start(struct net_device *dev)
RTL_W8(ChipCmd, CmdReset);

/* Check that the chip has finished the reset. */
for (i = 1000; i > 0; i--) {
for (i = 100; i > 0; i--) {
if ((RTL_R8(ChipCmd) & CmdReset) == 0)
break;
udelay(10);
msleep_interruptible(1);
}

if (tp->mac_version == RTL_GIGA_MAC_VER_13) {
Expand Down Expand Up @@ -1914,7 +1914,9 @@ rtl8169_hw_start(struct net_device *dev)
RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr >> 32));
RTL_W8(ChipCmd, CmdTxEnb | CmdRxEnb);
RTL_W8(Cfg9346, Cfg9346_Lock);
udelay(10);

/* Initially a 10 us delay. Turned it into a PCI commit. - FR */
RTL_R8(IntrMask);

RTL_W32(RxMissed, 0);

Expand Down

0 comments on commit 8c62dd0

Please sign in to comment.