Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276438
b: refs/heads/master
c: c7c2c39
h: refs/heads/master
v: v3
  • Loading branch information
françois romieu authored and David S. Miller committed Dec 5, 2011
1 parent 5b16e3e commit 6c3e802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 811fd3010cf512f2e23e6c4c912aad54516dc706
refs/heads/master: c7c2c39be8ed4e503e987151f4599455060e219a
11 changes: 3 additions & 8 deletions trunk/drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -3935,8 +3935,6 @@ static void rtl_hw_reset(struct rtl8169_private *tp)
break;
udelay(100);
}

rtl8169_init_ring_indexes(tp);
}

static int __devinit
Expand Down Expand Up @@ -5395,14 +5393,16 @@ static void rtl8169_reset_task(struct work_struct *work)
if (!netif_running(dev))
goto out_unlock;

rtl8169_hw_reset(tp);

rtl8169_wait_for_quiescence(dev);

for (i = 0; i < NUM_RX_DESC; i++)
rtl8169_mark_to_asic(tp->RxDescArray + i, rx_buf_sz);

rtl8169_tx_clear(tp);
rtl8169_init_ring_indexes(tp);

rtl8169_hw_reset(tp);
rtl_hw_start(dev);
netif_wake_queue(dev);
rtl8169_check_link_status(dev, tp, tp->mmio_addr);
Expand All @@ -5413,11 +5413,6 @@ static void rtl8169_reset_task(struct work_struct *work)

static void rtl8169_tx_timeout(struct net_device *dev)
{
struct rtl8169_private *tp = netdev_priv(dev);

rtl8169_hw_reset(tp);

/* Let's wait a bit while any (async) irq lands on */
rtl8169_schedule_work(dev, rtl8169_reset_task);
}

Expand Down

0 comments on commit 6c3e802

Please sign in to comment.