]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: pciehp: Don't enable HPIE when resuming in poll mode
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 21 Mar 2025 16:21:14 +0000 (18:21 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Mar 2025 16:33:49 +0000 (11:33 -0500)
commit527664f738afb6f2c58022cd35e63801e5dc7aec
treecc4a09bf94e9b5b327e5fc40e08b1ead676f1abf
parente3260237aaadc9799107ccb940c6688195c4518d
PCI: pciehp: Don't enable HPIE when resuming in poll mode

PCIe hotplug can operate in poll mode without interrupt handlers using a
polling kthread only.  eb34da60edee ("PCI: pciehp: Disable hotplug
interrupt during suspend") failed to consider that and enables HPIE
(Hot-Plug Interrupt Enable) unconditionally when resuming the Port.

Only set HPIE if non-poll mode is in use. This makes
pcie_enable_interrupt() match how pcie_enable_notification() already
handles HPIE.

Link: https://lore.kernel.org/r/20250321162114.3939-1-ilpo.jarvinen@linux.intel.com
Fixes: eb34da60edee ("PCI: pciehp: Disable hotplug interrupt during suspend")
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
drivers/pci/hotplug/pciehp_hpc.c