]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: acpiphp: Move host bridge hotplug to pci_root.c
authorYinghai Lu <yinghai@kernel.org>
Mon, 21 Jan 2013 21:20:48 +0000 (13:20 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Jan 2013 21:50:36 +0000 (14:50 -0700)
commit27daf4818457a485610ae95d9a6a944fffb3bf67
treeba04f0cb128c7d9cbe44f2050164608921ec7ee9
parent90230860174d6ab2ee8b264f073cde16fa4ac65d
PCI: acpiphp: Move host bridge hotplug to pci_root.c

The acpiphp driver is confusing because it contains partial support for PCI
host bridge hotplug as well as support for hotplug of PCI devices.

This patch moves the host bridge hot-add support to pci_root.c and adds
hot-remove support in pci_root.c.

How to test it: if sci_emu patch is applied, find out root bus number to
ACPI root name mapping from dmesg or /sys.  To remove root bus:

  echo "\_SB.PCIB 3" > /sys/kernel/debug/acpi/sci_notify

To add back root bus:

  echo "\_SB.PCIB 1" > /sys/kernel/debug/acpi/sci_notify

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/internal.h
drivers/acpi/pci_root.c
drivers/acpi/scan.c
drivers/pci/hotplug/acpiphp_glue.c