Commit d3a54014e2a94bd37b7dee5e76e03f7bc4fab49a

Authored by Benjamin Herrenschmidt
Committed by Jesse Barnes
1 parent 1ca887970a

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -158,6 +158,10 @@
158 158 dev_err(&dev->dev,
159 159 "Error creating cpulistaffinity"
160 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 }