]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: mediatek: Use PCI domain to handle ports detection
authorChuanjia Liu <chuanjia.liu@mediatek.com>
Mon, 23 Aug 2021 03:27:58 +0000 (11:27 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 26 Aug 2021 12:49:26 +0000 (13:49 +0100)
commit77216702c8f6288f948ee230772b4612b835c5d6
tree53e05995b85f8eddf3a31dc1e2029c2178f36088
parent436960bb0045854119a61efab20578f55b311a87
PCI: mediatek: Use PCI domain to handle ports detection

Use of_get_pci_domain_nr() to get the pci domain.

If the "linux,pci-domain" property is present, we assume that the PCIe
bridge is an individual bridge, hence we only need to parse one port.

Link: https://lore.kernel.org/r/20210823032800.1660-5-chuanjia.liu@mediatek.com
Signed-off-by: Chuanjia Liu <chuanjia.liu@mediatek.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Ryder Lee <ryder.lee@mediatek.com>
drivers/pci/controller/pcie-mediatek.c