]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI: pciehp: add auto option to pciehp_detect_mode
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 17 Dec 2008 03:08:15 +0000 (12:08 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:10 +0000 (11:13 -0800)
commite046cbd6c05ee859244245d7beeac395cd0057b3
tree1d1c3f434a77b522af098c54114d4fee7bd96a6e
parentc9ffa5a586a97da4d552f89b8f39eea79a63a612
PCI: pciehp: add auto option to pciehp_detect_mode

ACPI based hot-pluggable PCIe slot detection logic was added to
prevent the problem non hot-pluggable PCIe slot was detected as
hot-pluggable. The slot detection logic can be selected through
'pciehp_detect_mode', but it would be better if it is selected
automatically.

This patch adds 'auto' option for 'pciehp_detect_mode'. When it is
specified, pciehp judges which 'acpi' or 'pcie' should be used. It
seems that the physical slot number is duplicated among some slots on
most of the platforms with the above-mentioned problem. So 'auto' mode
uses this information to judge which 'acpi' or 'pcie' should be
used. That is, if duplicated physical slot numbers are detected,
'acpi' mode is used. This method is not perfect, but it's realistic.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_acpi.c