]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / hotplug / PCI: Runtime resume bridges before bus rescans
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Aug 2016 00:38:44 +0000 (02:38 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Aug 2016 01:33:58 +0000 (21:33 -0400)
commitfc55088cbd2a486abb1195f3381110d6671ba59f
tree38c7fe5535f6bb1efd27f9b5852e9e800bf713f6
parent302d69ad5a4fb2964fa8eca7062b2628669c645d
ACPI / hotplug / PCI: Runtime resume bridges before bus rescans

If a PCI bridge (or PCIe port) that is runtime-suspended gets an ACPI
hotplug notification, such as a bus check, it has to be resumed before
re-scanning the devices below it, or those devices will not be
accessible and will be treated as hot-removed.

Make that happen and let the bridge suspend again after the bus below it
has been re-scanned.

This is a replacement for commit 72e1ca8a6a00 ("ACPI / hotplug / PCI:
Runtime resume bridge before rescan") that has been reverted, because it
introduced a system resume regression (due to missing bridge->pci_dev
checks that are necessary in case the notification is targeted at the
host bridge) and it is necessary for the code added by commit
a9ccdaac4742 ("PCI: Add runtime PM support for PCIe ports") to work as
expected.

Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/hotplug/acpiphp_glue.c