]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Prefer PCI domain assignment via DT 'linux,pci-domain' and alias
authorPali Rohár <pali@kernel.org>
Wed, 6 Jul 2022 10:21:48 +0000 (12:21 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Jul 2022 06:22:13 +0000 (16:22 +1000)
commitb614cf23313a6915ca1b1218e8fcb2265f611e39
treef68c7a576ce45e10187d7b926a26f81cc910bcbd
parentf61e95e63d26b42233703f24fbbb36f02cf30e8c
powerpc/pci: Prefer PCI domain assignment via DT 'linux,pci-domain' and alias

Other Linux architectures use DT property 'linux,pci-domain' for
specifying fixed PCI domain of PCI controller specified in Device-Tree.

And lot of Freescale powerpc boards have defined numbered pci alias in
Device-Tree for every PCIe controller which number specify preferred PCI
domain.

So prefer usage of DT property 'linux,pci-domain' (via function
of_get_pci_domain_nr()) and DT pci alias (via function
of_alias_get_id()) on powerpc architecture for assigning PCI domain to
PCI controller.

Fixes: dd27a8d8aa3c ("powerpc/pci: Assign fixed PHB number based on device-tree properties")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220706102148.5060-2-pali@kernel.org
arch/powerpc/kernel/pci-common.c