commit | 9b5c0f952979f5276231717a954ce06302317e60 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Fri Jan 17 17:18:11 2025 +0800 |
committer | Tom Rini <trini@konsulko.com> | Thu Jan 23 12:11:49 2025 -0600 |
tree | 86ac2ab5eb202be9e6a56d14e51a8c9ccf936ca3 | |
parent | d24fd7eb0e4dcedafcb99658810765fb7d58fc8e [diff] |
pci: mediatek: add support for multiple ports in mediatek pcie gen3 driver One MediaTek PCIe Gen3 controller has only one port, where PCI bus 0 on this port represents the controller itself and bus 1 represents the external PCIe device. If multiple PCIe controllers are probed in U-Boot, U-Boot will use bus numbers greater than 2 as input parameters. Therefore, we should convert the BDF bus number to either 0 or 1 by subtracting the offset by controller->seq_.