Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI: of_property: Assign PCI instead of CPU bus address to dynamic PC…
…I nodes commit 5e316d3 upstream. When populating "ranges" property for a PCI bridge or endpoint, of_pci_prop_ranges() incorrectly uses the CPU address of the resource. In such PCI nodes, the window should instead be in PCI address space. Call pci_bus_address() on the resource in order to obtain the PCI bus address. [Previous discussion at: https://lore.kernel.org/all/8b4fa91380fc4754ea80f47330c613e4f6b6592c.1724159867.git.andrea.porta@suse.com/] Link: https://lore.kernel.org/r/[email protected] Fixes: 407d1a5 ("PCI: Create device tree node for bridge") Tested-by: Herve Codina <[email protected]> Signed-off-by: Andrea della Porta <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information