aboutsummaryrefslogtreecommitdiffstats
path: root/pci/acpiphp-fix-bridge-handle.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pci/acpiphp-fix-bridge-handle.patch')
-rw-r--r--pci/acpiphp-fix-bridge-handle.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/pci/acpiphp-fix-bridge-handle.patch b/pci/acpiphp-fix-bridge-handle.patch
new file mode 100644
index 00000000000000..53df0624b10641
--- /dev/null
+++ b/pci/acpiphp-fix-bridge-handle.patch
@@ -0,0 +1,35 @@
+From muneda.takahiro@jp.fujitsu.com Fri Feb 24 09:08:13 2006
+Date: Fri, 24 Feb 2006 17:46:04 +0900
+Message-ID: <878xs1ywj7.wl%muneda.takahiro@jp.fujitsu.com>
+From: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
+To: <greg@kroah.com>, <kristen.c.accardi@intel.com>
+Subject: acpiphp: fix bridge handle
+Cc: <muneda.takahiro@jp.fujitsu.com>, <len.brown@intel.com>
+
+When hotplug slot is under the host bridge,
+DEVICE_ACPI_HANDLE(&bus->self->dev) fails since '&bus->self' was not set.
+This patch fixes it.
+
+This patch is based on kristen's latest patches.
+I tested this patch on my Tiger4.
+
+Signed-off-by: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ drivers/pci/hotplug/acpiphp_glue.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- gregkh-2.6.orig/drivers/pci/hotplug/acpiphp_glue.c
++++ gregkh-2.6/drivers/pci/hotplug/acpiphp_glue.c
+@@ -972,8 +972,8 @@ static int enable_device(struct acpiphp_
+ acpiphp_sanitize_bus(bus);
+ pci_enable_bridges(bus);
+ pci_bus_add_devices(bus);
+- acpiphp_set_hpp_values(DEVICE_ACPI_HANDLE(&bus->self->dev), bus);
+- acpiphp_configure_ioapics(DEVICE_ACPI_HANDLE(&bus->self->dev));
++ acpiphp_set_hpp_values(slot->bridge->handle, bus);
++ acpiphp_configure_ioapics(slot->bridge->handle);
+
+ /* associate pci_dev to our representation */
+ list_for_each (l, &slot->funcs) {