Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275075
b: refs/heads/master
c: 5b19062
h: refs/heads/master
i:
  275073: 7f0c743
  275071: ab5b71d
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Nov 4, 2011
1 parent 3040f78 commit 2327e27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 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: db21997379906fe7657d360674e1106d80b020a4
refs/heads/master: 5b1906241905d9bd1abe920854b3d43c2b9c85e1
14 changes: 2 additions & 12 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -6352,7 +6352,6 @@ static void tg3_reset_task(struct work_struct *work)
{
struct tg3 *tp = container_of(work, struct tg3, reset_task);
int err;
unsigned int restart_timer;

tg3_full_lock(tp, 0);

Expand All @@ -6370,9 +6369,6 @@ static void tg3_reset_task(struct work_struct *work)

tg3_full_lock(tp, 1);

restart_timer = tg3_flag(tp, RESTART_TIMER);
tg3_flag_clear(tp, RESTART_TIMER);

if (tg3_flag(tp, TX_RECOVERY_PENDING)) {
tp->write32_tx_mbox = tg3_write32_tx_mbox;
tp->write32_rx_mbox = tg3_write_flush_reg32;
Expand All @@ -6387,9 +6383,6 @@ static void tg3_reset_task(struct work_struct *work)

tg3_netif_start(tp);

if (restart_timer)
mod_timer(&tp->timer, jiffies + 1);

out:
tg3_full_unlock(tp);

Expand Down Expand Up @@ -9218,7 +9211,7 @@ static void tg3_timer(unsigned long __opaque)
{
struct tg3 *tp = (struct tg3 *) __opaque;

if (tp->irq_sync)
if (tp->irq_sync || tg3_flag(tp, RESET_TASK_PENDING))
goto restart_timer;

spin_lock(&tp->lock);
Expand All @@ -9241,10 +9234,9 @@ static void tg3_timer(unsigned long __opaque)
}

if (!(tr32(WDMAC_MODE) & WDMAC_MODE_ENABLE)) {
tg3_flag_set(tp, RESTART_TIMER);
spin_unlock(&tp->lock);
tg3_reset_task_schedule(tp);
return;
goto restart_timer;
}
}

Expand Down Expand Up @@ -15847,12 +15839,10 @@ static pci_ers_result_t tg3_io_error_detected(struct pci_dev *pdev,
tg3_netif_stop(tp);

del_timer_sync(&tp->timer);
tg3_flag_clear(tp, RESTART_TIMER);

/* Want to make sure that the reset task doesn't run */
tg3_reset_task_cancel(tp);
tg3_flag_clear(tp, TX_RECOVERY_PENDING);
tg3_flag_clear(tp, RESTART_TIMER);

netif_device_detach(netdev);

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/ethernet/broadcom/tg3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2879,7 +2879,6 @@ enum TG3_FLAGS {
TG3_FLAG_JUMBO_CAPABLE,
TG3_FLAG_CHIP_RESETTING,
TG3_FLAG_INIT_COMPLETE,
TG3_FLAG_RESTART_TIMER,
TG3_FLAG_TSO_BUG,
TG3_FLAG_IS_5788,
TG3_FLAG_MAX_RXPEND_64,
Expand Down

0 comments on commit 2327e27

Please sign in to comment.