]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI: pciehp: add ACPI based slot detection
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 17 Dec 2008 03:07:38 +0000 (12:07 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:10 +0000 (11:13 -0800)
commitc9ffa5a586a97da4d552f89b8f39eea79a63a612
tree47e4a6de7df1c5d41bff61f8bfc81eb464b8d2c6
parent873392ca514f87eae39f53b6944caf85b1a047cb
PCI: pciehp: add ACPI based slot detection

There is a problem that some non hot-pluggable PCIe slots are detected
as hot-pluggable by pciehp on some platforms. The immediate cause of
this problem is that hot-plug capable bit in the Slot Capabilities
register is set even for non hot-pluggable slots on those platforms.
It seems a BIOS/hardware problem, but we need workaround about that.

Some of those platforms define hot-pluggable PCIe slots on ACPI
namespace properly, while hot-plug capable bit in the Slot
Capabilities register is set improperly. So using ACPI namespace
information in pciehp to detect PCIe hot-pluggable slots would be a
workaround.

This patch adds 'pciehp_detect_mode' module option. When 'acpi' is
specified, pciehp uses ACPI namespace information to detect PCIe
hot-pluggable slots.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/Makefile
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_acpi.c [new file with mode: 0644]
drivers/pci/hotplug/pciehp_core.c