]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ACPI / hotplug / PCI: Avoid doing too much for spurious notifies"
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 30 Oct 2013 12:40:36 +0000 (14:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 14:28:52 +0000 (15:28 +0100)
commit6ee781f7c67922e0984b4f36f5338f1bc282c449
tree1d7e39205fb8be851f19bff36fed83c7edf42f7c
parente782c5cb865e71ce0729acbb3b0f14c7b9bffe45
Revert "ACPI / hotplug / PCI: Avoid doing too much for spurious notifies"

Commit 0f17315 (ACPI / hotplug / PCI: Avoid doing too much for
spurious notifies) changed the enable_slot() to check return value of
pci_scan_slot() and if it is zero return early from the function. It
means that there were no new devices in this particular slot.

However, if a device appeared deeper in the hierarchy the code now
ignores it causing things like Thunderbolt chaining fail to recognize
new devices.

The problem with Alex Williamson's machine was solved with commit
df3b8c4 (ACPI / hotplug / PCI: Avoid parent bus rescans on spurious
device checks) and hence we should be able to restore the original
functionality that we always rescan on bus check notification.

On a device check notification we still check what acpiphp_rescan_slot()
returns and on zero bail out early.

Fixes: 0f1731590044 (ACPI / hotplug / PCI: Avoid doing too much for spurious notifies)
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_glue.c