Commit 9fc3bc76 authored by George Shuklin's avatar George Shuklin Committed by Jakub Kicinski

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: default avatarGeorge Shuklin <george.shuklin@gmail.com>
Fixes: 2ca1c94c ("tg3: Disable tg3 device on system reboot to avoid triggering AER")
Reviewed-by: default avatarPavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: default avatarMichael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231103115029.83273-1-george.shuklin@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c1ed833e
...@@ -18127,6 +18127,7 @@ static void tg3_shutdown(struct pci_dev *pdev) ...@@ -18127,6 +18127,7 @@ static void tg3_shutdown(struct pci_dev *pdev)
if (netif_running(dev)) if (netif_running(dev))
dev_close(dev); dev_close(dev);
if (system_state == SYSTEM_POWER_OFF)
tg3_power_down(tp); tg3_power_down(tp);
rtnl_unlock(); rtnl_unlock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment