]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Use resource start as ioremap() input in dw_pcie_pme_turn_off()
authorFrank Li <Frank.Li@nxp.com>
Sat, 15 Mar 2025 20:15:36 +0000 (15:15 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Mar 2025 19:18:14 +0000 (14:18 -0500)
commit8f4a489b370e6612700aa16b9e4373b2d85d7503
tree94db9b7455411d8e63ec1d198b4a9ba32a2d1c18
parent2014c95afecee3e76ca4a56956a936e23283f05b
PCI: dwc: Use resource start as ioremap() input in dw_pcie_pme_turn_off()

The msg_res region translates writes into PCIe Message TLPs. Previously we
mapped this region using atu.cpu_addr, the input address programmed into
the ATU.

"cpu_addr" is a misnomer because when a bus fabric translates addresses
between the CPU and the ATU, the ATU input address is different from the
CPU address.  A future patch will rename "cpu_addr" and correct the value
to be the ATU input address instead of the CPU physical address.

Map the msg_res region before writing to it using the msg_res resource
start, a CPU physical address.

Link: https://lore.kernel.org/r/20250315201548.858189-2-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-host.c