Commit 81d1d21
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 c0b70f0 ("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.com1 parent 2014c95 commit 81d1d21
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
1474 | 1473 | | |
1475 | 1474 | | |
1476 | 1475 | | |
1477 | | - | |
1478 | 1476 | | |
1479 | | - | |
| 1477 | + | |
1480 | 1478 | | |
1481 | 1479 | | |
1482 | 1480 | | |
| |||
1515 | 1513 | | |
1516 | 1514 | | |
1517 | 1515 | | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | 1516 | | |
1523 | 1517 | | |
1524 | 1518 | | |
| |||
1565 | 1559 | | |
1566 | 1560 | | |
1567 | 1561 | | |
1568 | | - | |
1569 | | - | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1570 | 1567 | | |
1571 | 1568 | | |
1572 | 1569 | | |
| |||
0 commit comments