Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3a54014 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Jesse Barnes
Browse files

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 1ca88797
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -158,6 +158,10 @@ void pci_bus_add_devices(struct pci_bus *bus)
				dev_err(&dev->dev,
				dev_err(&dev->dev,
					"Error creating cpulistaffinity"
					"Error creating cpulistaffinity"
					" file, continuing...\n");
					" file, continuing...\n");

			/* Create legacy_io and legacy_mem files for this bus */
			pci_create_legacy_files(child_bus);

		}
		}
	}
	}
}
}