Commit d42f5da2 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI / hotplug / PCI: Scan root bus under the PCI rescan-remove lock

Since acpiphp_check_bridge() called by acpiphp_check_host_bridge()
does things that require PCI rescan-remove locking around it,
make acpiphp_check_host_bridge() use that locking.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent f41b3261
...@@ -829,7 +829,11 @@ void acpiphp_check_host_bridge(acpi_handle handle) ...@@ -829,7 +829,11 @@ void acpiphp_check_host_bridge(acpi_handle handle)
bridge = acpiphp_handle_to_bridge(handle); bridge = acpiphp_handle_to_bridge(handle);
if (bridge) { if (bridge) {
pci_lock_rescan_remove();
acpiphp_check_bridge(bridge); acpiphp_check_bridge(bridge);
pci_unlock_rescan_remove();
put_bridge(bridge); put_bridge(bridge);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment