Commit c2a8c2a7 authored by Alexandru Elisei's avatar Alexandru Elisei
Browse files

arm: pci.c: Advertise only PCI bus 0 in the DT

The "bus-range" property encodes the first and last bus number. kvmtool
uses bus 0 for PCI and bus 1 for MMIO.  Advertise only the PCI bus in
the PCI DT node by setting "bus-range" to <0, 0>.
parent d7b6a894
......@@ -30,7 +30,7 @@ void pci__generate_fdt_nodes(void *fdt)
struct of_interrupt_map_entry irq_map[OF_PCI_IRQ_MAP_MAX];
unsigned nentries = 0;
/* Bus range */
u32 bus_range[] = { cpu_to_fdt32(0), cpu_to_fdt32(1), };
u32 bus_range[] = { cpu_to_fdt32(0), cpu_to_fdt32(0), };
/* Configuration Space */
u64 cfg_reg_prop[] = { cpu_to_fdt64(KVM_PCI_CFG_AREA),
cpu_to_fdt64(ARM_PCI_CFG_SIZE), };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment