]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Use parent_bus_offset to remove need for .cpu_addr_fixup()
authorFrank Li <Frank.Li@nxp.com>
Sat, 15 Mar 2025 20:15:47 +0000 (15:15 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 24 Mar 2025 19:58:34 +0000 (14:58 -0500)
commitbefc86a0b354285f49b6d0dccd50956e95f437c4
tree669e369a1cdfc9083997655222b8428bb2a90e90
parentf3e1dccba0a0833fc9a05fb838ebeb6ea4ca0e1a
PCI: dwc: Use parent_bus_offset to remove need for .cpu_addr_fixup()

We know the parent_bus_offset, either computed from a DT reg property (the
offset is the CPU physical addr - the 'config'/'addr_space' address on the
parent bus) or from a .cpu_addr_fixup() (which may have used a host bridge
window offset).

Apply that parent_bus_offset instead of calling .cpu_addr_fixup() when
programming the ATU.

This assumes all intermediate addresses are at the same offset from the CPU
physical addresses.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20250315201548.858189-13-helgaas@kernel.org
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware-host.c
drivers/pci/controller/dwc/pcie-designware.c