diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-11-11 22:38:53 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:12:25 -0500 |
commit | d3a54014e2a94bd37b7dee5e76e03f7bc4fab49a (patch) | |
tree | 93a8d3d8e6826492e61e754629ba30f646528d5c /drivers/pci/bus.c | |
parent | 1ca887970a3971a22e4875b7c6ad5ae3ce49f61a (diff) |
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>
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r-- | drivers/pci/bus.c | 4 |
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) | |||
158 | dev_err(&dev->dev, | 158 | dev_err(&dev->dev, |
159 | "Error creating cpulistaffinity" | 159 | "Error creating cpulistaffinity" |
160 | " file, continuing...\n"); | 160 | " file, continuing...\n"); |
161 | |||
162 | /* Create legacy_io and legacy_mem files for this bus */ | ||
163 | pci_create_legacy_files(child_bus); | ||
164 | |||
161 | } | 165 | } |
162 | } | 166 | } |
163 | } | 167 | } |