Skip to contentSkip to conversation

PCI: turn off PCIe services during shutdown

PATCH Applied Sinan Kaya 2 participants 2 messages Oct 25, 2017 – Nov 7, 2017

Subsystems (2)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH 1/1 PCI: turn off PCIe services during shutdown

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.

Let's clean up the PCIe services gracefully during shutdown to clear these false positives.

---
 drivers/pci/pcie/portdrv_pci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pcie/portdrv_pci.c +1 -0
index 083276e..b350d12 100644
@@ -246,6 +246,7 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
 
 	.probe		= pcie_portdrv_probe,
 	.remove		= pcie_portdrv_remove,
+	.shutdown	= pcie_portdrv_remove,
 
 	.err_handler	= &pcie_portdrv_err_handler,
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 8 lines · Sinan Kaya

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.

Let's clean up the PCIe services gracefully during shutdown to clear these false positives.

Applied to pci/portdrv for v4.15, thanks!

Quoted 24 lines
---
 drivers/pci/pcie/portdrv_pci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pcie/portdrv_pci.c +1 -0
index 083276e..b350d12 100644
@@ -246,6 +246,7 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
 
 	.probe		= pcie_portdrv_probe,
 	.remove		= pcie_portdrv_remove,
+	.shutdown	= pcie_portdrv_remove,
 
 	.err_handler	= &pcie_portdrv_err_handler,
 
Signature · 7 lines
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel