Skip to content

Commit d8b2411

Browse files
Vasundhara Volamgregkh
authored andcommitted
bnxt_en: Improve device shutdown method.
[ Upstream commit 5567ae4 ] Especially when bnxt_shutdown() is called during kexec, we need to disable MSIX and disable Bus Master to completely quiesce the device. Make these 2 calls unconditionally in the shutdown method. Fixes: c20dc14 ("bnxt_en: Disable bus master during PCI shutdown and driver unload.") Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 04f1991 commit d8b2411

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11972,10 +11972,10 @@ static void bnxt_shutdown(struct pci_dev *pdev)
1197211972
dev_close(dev);
1197311973

1197411974
bnxt_ulp_shutdown(bp);
11975+
bnxt_clear_int_mode(bp);
11976+
pci_disable_device(pdev);
1197511977

1197611978
if (system_state == SYSTEM_POWER_OFF) {
11977-
bnxt_clear_int_mode(bp);
11978-
pci_disable_device(pdev);
1197911979
pci_wake_from_d3(pdev, bp->wol);
1198011980
pci_set_power_state(pdev, PCI_D3hot);
1198111981
}

0 commit comments

Comments
 (0)