Last-minute ACPI and power management fixes for 3.12

 - Revert epoll and select commits related to the freezer, introduced
   during the 3.11 cycle, that cause mysterious user space breakage
   to occur during resume from suspend to RAM for multiple users of
   32-bit x86 systems.  Material for 3.11.y stable kernels.

 - Revert a recent ACPI-based PCI hotplug (ACPIPHP) commit that was
   part of boot problem fixes for one machine, but turns out to cause
   issues with hotplug on Thunderbolt chains with multiple devices.
   It also turns out to be unnecessary after another fix in the
   same area that went in later.  From Mika Westerberg.

/
Revert "ACPI / hotplug / PCI: Avoid doing too much for spurious notifies"

Commit 2dc4128 (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
a47d8c8 (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: 2dc41281b1d1 (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>
1 file changed