PCI/portdrv: Turn off PCIe services during shutdown
authorSinan Kaya <okaya@codeaurora.org>
Wed, 25 Oct 2017 19:01:02 +0000 (15:01 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Nov 2017 00:08:45 +0000 (18:08 -0600)
Some of the PCIe services such as AER are being left enabled during
shutdown. This might cause spurious AER errors while SOC is being powered
down.

Clean up the PCIe services gracefully during shutdown to clear these false
positives.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_pci.c

index 083276e03c38d924886a9e1d386deaee5b9e06e5..b350d12b39e33b9fec942a0654ca3f7def5c8d6e 100644 (file)
@@ -246,6 +246,7 @@ static struct pci_driver pcie_portdriver = {
 
        .probe          = pcie_portdrv_probe,
        .remove         = pcie_portdrv_remove,
+       .shutdown       = pcie_portdrv_remove,
 
        .err_handler    = &pcie_portdrv_err_handler,