]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:16:10 +0000 (15:16 +0200)
commit47a8fe1b154aa6d836582365b1c70684af8597e4
tree96aa0f07802797b1324a6bc2c986fd7111b6c4f7
parent7ac58a83d8f10baabbb38e4bec3140755ba305d4
powerpc/pci: Prefer PCI domain assignment via DT 'linux,pci-domain' and alias

[ Upstream commit 0fe1e96fef0a5c53b4c0d1500d356f3906000f81 ]

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: 63a72284b159 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/pci-common.c