]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/fsl-pci: Choose PCI host bridge with alias pci0 as the primary
authorPali Rohár <pali@kernel.org>
Sat, 20 Aug 2022 12:33:27 +0000 (14:33 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Nov 2022 10:46:48 +0000 (21:46 +1100)
commite082e99f6f87f5204b2531d5a3db7bbd929d23b1
tree80035e85fbdf71c1cbe6af0a5938fbdee7fa9f5d
parent67bbb62f61e810734da0a1577a9802ddaed24140
powerpc/fsl-pci: Choose PCI host bridge with alias pci0 as the primary

If there's no PCI host bridge with ISA then check for PCI host bridge with
alias "pci0" (first PCI host bridge) and if it exists then choose it as the
primary PCI host bridge.

This makes choice of primary PCI host bridge more stable across boots and
updates as the last fallback candidate for primary PCI host bridge (if
there is no choice) is selected arbitrary.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220820123327.20551-1-pali@kernel.org
arch/powerpc/sysdev/fsl_pci.c