platform / x86: Use global PCI rescan-remove locking
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 10 Jan 2014 14:27:08 +0000 (15:27 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Jan 2014 19:14:25 +0000 (12:14 -0700)
commit8b9ec1da6a310b438516468c669a7e1be046b18c
treee944d9d21bba1f2f90ff48f0bd9b467b9f3ee270
parentc4ec84c7db0e4b01ed40cc2388f16ae5c6513cc0
platform / x86: Use global PCI rescan-remove locking

Multiple race conditions are possible between the rfkill hotplug in the
asus-wmi and eeepc-laptop drivers and the generic PCI bus rescan and device
removal that can be triggered via sysfs.

To avoid those race conditions make asus-wmi and eeepc-laptop use global
PCI rescan-remove locking around the rfkill hotplug.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/eeepc-laptop.c