Skip to content

Commit

Permalink
PCI: Add legacy_io/mem to all busses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt authored and Jesse Barnes committed Jan 7, 2009
1 parent 1ca8879 commit d3a5401
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pci/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
}
}
Expand Down

0 comments on commit d3a5401

Please sign in to comment.