summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-11-12 14:38:53 +1100
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 11:12:25 -0800
commitd3a54014e2a94bd37b7dee5e76e03f7bc4fab49a (patch)
tree93a8d3d8e6826492e61e754629ba30f646528d5c
parent1ca887970a3971a22e4875b7c6ad5ae3ce49f61a (diff)
downloadlinux-d3a54014e2a94bd37b7dee5e76e03f7bc4fab49a.tar.bz2
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);
+
}
}
}