Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370
b: refs/heads/master
c: 8c6bda1
h: refs/heads/master
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Apr 22, 2005
1 parent 837a1b0 commit 626c414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 314fba348e1f64a30b53d3cff5d96872424e8498
refs/heads/master: 8c6bda1a89c148f3a28edc09a76dac9bff57d8ee
10 changes: 8 additions & 2 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,13 @@ static int tg3_set_power_state(struct tg3 *tp, int state)
pci_write_config_word(tp->pdev,
pm + PCI_PM_CTRL,
power_control);
tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl);
udelay(100);
udelay(100); /* Delay after power state change */

/* Switch out of Vaux if it is not a LOM */
if (!(tp->tg3_flags & TG3_FLAG_EEPROM_WRITE_PROT)) {
tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl);
udelay(100);
}

return 0;

Expand Down Expand Up @@ -1151,6 +1156,7 @@ static int tg3_set_power_state(struct tg3 *tp, int state)

/* Finally, set the new power state. */
pci_write_config_word(tp->pdev, pm + PCI_PM_CTRL, power_control);
udelay(100); /* Delay after power state change */

tg3_write_sig_post_reset(tp, RESET_KIND_SHUTDOWN);

Expand Down

0 comments on commit 626c414

Please sign in to comment.