summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-11-12 04:38:53 +0100
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 20:12:25 +0100
commitd3a54014e2a94bd37b7dee5e76e03f7bc4fab49a (patch)
tree93a8d3d8e6826492e61e754629ba30f646528d5c
parentPCI: Extend pci_reset_function() to support PCI Advanced Features (diff)
downloadlinux-d3a54014e2a94bd37b7dee5e76e03f7bc4fab49a.tar.xz
linux-d3a54014e2a94bd37b7dee5e76e03f7bc4fab49a.zip
PCI: Add legacy_io/mem to all busses
Currently, only PHBs get the legacy_* files, which makes it tricky for userland to get access to the legacy space. This commit exposes them in every bus, since even child buses may forward legacy cycles if configured properly. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/pci/bus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 999cc4088b59..3e1c135b174a 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -158,6 +158,10 @@ void pci_bus_add_devices(struct pci_bus *bus)
dev_err(&dev->dev,
"Error creating cpulistaffinity"
" file, continuing...\n");
+
+ /* Create legacy_io and legacy_mem files for this bus */
+ pci_create_legacy_files(child_bus);
+
}
}
}