[PATCH] pci: Add legacy_io/mem to all busses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently, only PHBs get those files, which makes it tricky
for userland to get access to the legacy space. I see no reason
why they can't be exposed by every bus since potentially those
bus may forward those cycles if they are configured properly.

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
---

 drivers/pci/bus.c |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-work.orig/drivers/pci/bus.c	2008-11-12 10:57:21.000000000 +1100
+++ linux-work/drivers/pci/bus.c	2008-11-12 10:57:27.000000000 +1100
@@ -158,6 +158,10 @@ void pci_bus_add_devices(struct pci_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);
+
 		}
 	}
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux