]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: pciehp: Request control of native hotplug only if supported
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 23 May 2018 22:19:22 +0000 (17:19 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 23 May 2018 22:42:53 +0000 (17:42 -0500)
commit408fec36a1ab3d14273c2116b449ef1e9be3cb8b
treea9a5f147940abfd6668ff3f35ed3c5e5f88c955f
parent13c65840feab8109194f9490c9870587173cb29d
PCI: pciehp: Request control of native hotplug only if supported

Currently we request control of native PCIe hotplug unconditionally.
Native PCIe hotplug events are handled by the pciehp driver, and if it is
not enabled those events will be lost.

Request control of native PCIe hotplug only if the pciehp driver is
enabled, so we will actually handle native PCIe hotplug events.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_root.c