summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
diff options
context:
space:
mode:
authorWeijie Gao <weijie.gao@mediatek.com>2025-01-17 17:18:11 +0800
committerTom Rini <trini@konsulko.com>2025-01-23 12:11:49 -0600
commitdfbadb86b3bc43c004671ab6eb46ee160a192e98 (patch)
tree86ac2ab5eb202be9e6a56d14e51a8c9ccf936ca3 /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
parent7071ba2658ef6175183cc5dc85819293811490b3 (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_. Signed-off-by: Sam Shih <sam.shih@mediatek.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c')
0 files changed, 0 insertions, 0 deletions