Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 957
b: refs/heads/master
c: e6de8ad
h: refs/heads/master
i:
  955: fbf296c
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed May 5, 2005
1 parent 8d21b3a commit 109c35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: b3b7d6be54f919556148946adb4ece91820ad210
refs/heads/master: e6de8ad1fae8385eca4bf288e7a6ea2664ce0458
13 changes: 3 additions & 10 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3725,8 +3725,6 @@ static int tg3_abort_hw(struct tg3 *tp, int silent)
err |= tg3_stop_block(tp, SNDDATAC_MODE, SNDDATAC_MODE_ENABLE, silent);
err |= tg3_stop_block(tp, DMAC_MODE, DMAC_MODE_ENABLE, silent);
err |= tg3_stop_block(tp, SNDBDC_MODE, SNDBDC_MODE_ENABLE, silent);
if (err)
goto out;

tp->mac_mode &= ~MAC_MODE_TDE_ENABLE;
tw32_f(MAC_MODE, tp->mac_mode);
Expand All @@ -3744,10 +3742,10 @@ static int tg3_abort_hw(struct tg3 *tp, int silent)
printk(KERN_ERR PFX "tg3_abort_hw timed out for %s, "
"TX_MODE_ENABLE will not clear MAC_TX_MODE=%08x\n",
tp->dev->name, tr32(MAC_TX_MODE));
return -ENODEV;
err |= -ENODEV;
}

err = tg3_stop_block(tp, HOSTCC_MODE, HOSTCC_MODE_ENABLE, silent);
err |= tg3_stop_block(tp, HOSTCC_MODE, HOSTCC_MODE_ENABLE, silent);
err |= tg3_stop_block(tp, WDMAC_MODE, WDMAC_MODE_ENABLE, silent);
err |= tg3_stop_block(tp, MBFREE_MODE, MBFREE_MODE_ENABLE, silent);

Expand All @@ -3756,15 +3754,12 @@ static int tg3_abort_hw(struct tg3 *tp, int silent)

err |= tg3_stop_block(tp, BUFMGR_MODE, BUFMGR_MODE_ENABLE, silent);
err |= tg3_stop_block(tp, MEMARB_MODE, MEMARB_MODE_ENABLE, silent);
if (err)
goto out;

if (tp->hw_status)
memset(tp->hw_status, 0, TG3_HW_STATUS_SIZE);
if (tp->hw_stats)
memset(tp->hw_stats, 0, sizeof(struct tg3_hw_stats));

out:
return err;
}

Expand Down Expand Up @@ -5063,9 +5058,7 @@ static int tg3_reset_hw(struct tg3 *tp)
tg3_write_sig_pre_reset(tp, RESET_KIND_INIT);

if (tp->tg3_flags & TG3_FLAG_INIT_COMPLETE) {
err = tg3_abort_hw(tp, 1);
if (err)
return err;
tg3_abort_hw(tp, 1);
}

err = tg3_chip_reset(tp);
Expand Down

0 comments on commit 109c35d

Please sign in to comment.