aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 742340aebf7e..f0b5dc7766bb 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -1005,8 +1005,13 @@ static int tg3_set_power_state(struct tg3 *tp, int state)
1005 pci_write_config_word(tp->pdev, 1005 pci_write_config_word(tp->pdev,
1006 pm + PCI_PM_CTRL, 1006 pm + PCI_PM_CTRL,
1007 power_control); 1007 power_control);
1008 tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl); 1008 udelay(100); /* Delay after power state change */
1009 udelay(100); 1009
1010 /* Switch out of Vaux if it is not a LOM */
1011 if (!(tp->tg3_flags & TG3_FLAG_EEPROM_WRITE_PROT)) {
1012 tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl);
1013 udelay(100);
1014 }
1010 1015
1011 return 0; 1016 return 0;
1012 1017
@@ -1151,6 +1156,7 @@ static int tg3_set_power_state(struct tg3 *tp, int state)
1151 1156
1152 /* Finally, set the new power state. */ 1157 /* Finally, set the new power state. */
1153 pci_write_config_word(tp->pdev, pm + PCI_PM_CTRL, power_control); 1158 pci_write_config_word(tp->pdev, pm + PCI_PM_CTRL, power_control);
1159 udelay(100); /* Delay after power state change */
1154 1160
1155 tg3_write_sig_post_reset(tp, RESET_KIND_SHUTDOWN); 1161 tg3_write_sig_post_reset(tp, RESET_KIND_SHUTDOWN);
1156 1162