]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: imx6: Identify controller via 'linux,pci-domain', not address
authorRichard Zhu <hongxing.zhu@nxp.com>
Wed, 26 Feb 2025 02:42:56 +0000 (10:42 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 15 Mar 2025 18:12:00 +0000 (13:12 -0500)
commit81d1d214e171c9c4b283f9aeb9a97c4a88d0fcf6
tree251b53bd5aff4ea8f5bd832ba0d78508c240f3df
parent2014c95afecee3e76ca4a56956a936e23283f05b
PCI: imx6: Identify controller via 'linux,pci-domain', not address

Instead of testing the controller register address to distinguish
controller 1 from controller 0 on i.MX8MQ platforms, use the PCI domain
number, which comes from the devicetree 'linux,pci-domain' property.

All relevant devicetrees should already supply 'linux,pci-domain', which
was added by c0b70f05c87f ("arm64: dts: imx8mq: use_dt_domains for pci
node").

Instead of being set directly in imx_pcie_probe(), pci->dbi_base will be
set by the DWC core in dw_pcie_get_resources().

No functional changes intended.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250226024256.1678103-3-hongxing.zhu@nxp.com
drivers/pci/controller/dwc/pci-imx6.c