OSDN Git Service

eeepc-laptop: Register as a pci-hotplug device
authorCorentin Chary <corentincj@iksaif.net>
Sun, 27 Sep 2009 18:42:29 +0000 (20:42 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Wed, 30 Sep 2009 20:17:43 +0000 (22:17 +0200)
commitcc4c2857b6da1f6bebc70d7059e4b29dfabcdf04
tree89e251dd4e4ee73ec2c17392ff19afffefff99b7
parent05fea89d01110a4363274c86dd57e6bd37dcb082
eeepc-laptop: Register as a pci-hotplug device

The eee contains a logically (but not physically) hotpluggable PCIe slot.
Currently this is handled by adding or removing the PCI device in response
to rfkill events, but if a user has forced pciehp to bind to it (with the
force=1 argument) then both drivers will try to handle the event and
hilarity (in the form of oopses) will ensue. This can be avoided by having
eee-laptop register the slot as a hotplug slot. Only one of pciehp and
eee-laptop will successfully register this, avoiding the problem.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Tested-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c