Skip to content

Commit 9fc3bc7

Browse files
amaraokuba-moo
authored andcommitted
tg3: power down device only on SYSTEM_POWER_OFF
Dell R650xs servers hangs on reboot if tg3 driver calls tg3_power_down. This happens only if network adapters (BCM5720 for R650xs) were initialized using SNP (e.g. by booting ipxe.efi). The actual problem is on Dell side, but this fix allows servers to come back alive after reboot. Signed-off-by: George Shuklin <[email protected]> Fixes: 2ca1c94 ("tg3: Disable tg3 device on system reboot to avoid triggering AER") Reviewed-by: Pavan Chebbi <[email protected]> Reviewed-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c1ed833 commit 9fc3bc7

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+2
-1
lines changed

drivers/net/ethernet/broadcom/tg3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18127,7 +18127,8 @@ static void tg3_shutdown(struct pci_dev *pdev)
1812718127
if (netif_running(dev))
1812818128
dev_close(dev);
1812918129

18130-
tg3_power_down(tp);
18130+
if (system_state == SYSTEM_POWER_OFF)
18131+
tg3_power_down(tp);
1813118132

1813218133
rtnl_unlock();
1813318134

0 commit comments

Comments
 (0)