Page MenuHomeFreeBSD

D31508.diff
No OneTemporary

D31508.diff

diff --git a/sys/dev/pci/pci_host_generic_fdt.c b/sys/dev/pci/pci_host_generic_fdt.c
--- a/sys/dev/pci/pci_host_generic_fdt.c
+++ b/sys/dev/pci/pci_host_generic_fdt.c
@@ -138,6 +138,14 @@
/* TODO parse FDT bus ranges */
sc->base.bus_start = 0;
sc->base.bus_end = 0xFF;
+
+ /*
+ * ofw_pcib uses device unit as PCI domain number.
+ * Do the same. Some boards have multiple RCs handled
+ * by different drivers, this ensures that there are
+ * no collisions.
+ */
+ sc->base.ecam = device_get_unit(dev);
error = pci_host_generic_core_attach(dev);
if (error != 0)

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 7:38 AM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14692716
Default Alt Text
D31508.diff (579 B)

Event Timeline