kernel_samsung_a53x/drivers/pci/pcie
Kai-Heng Feng 901d3a33a8 PCI/AER: Disable AER service on suspend
[ Upstream commit 5afc2f763edc5daae4722ee46fea4e627d01fa90 ]

If the link is powered off during suspend, electrical noise may cause
errors that are logged via AER.  If the AER interrupt is enabled and shares
an IRQ with PME, that causes a spurious wakeup during suspend.

Disable the AER interrupt during suspend to prevent this.  Clear error
status before re-enabling IRQ interrupts during resume so we don't get an
interrupt for errors that occurred during the suspend/resume process.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=209149
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218090
Link: https://lore.kernel.org/r/20240416043225.1462548-2-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
[bhelgaas: drop pci_ancestor_pr3_present() etc, commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-15 16:29:40 +01:00
..
aer.c PCI/AER: Disable AER service on suspend 2025-01-15 16:29:40 +01:00
aer_inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aspm.c PCI/ASPM: Fix L1 substate handling in aspm_attr_store_common() 2024-11-18 11:43:22 +01:00
dpc.c PCI/DPC: Quirk PIO log size for certain Intel Root Ports 2024-11-19 09:22:33 +01:00
edr.c PCI/EDR: Align EDR_PORT_LOCATE_DSM with PCI Firmware r3.3 2024-11-19 12:27:04 +01:00
err.c PCI/AER: Block runtime suspend when handling errors 2024-11-19 09:22:34 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities() 2024-11-19 09:22:18 +01:00
pme.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
portdrv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
portdrv_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
portdrv_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcec.c PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities() 2024-11-19 09:22:18 +01:00