]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Pass available buses even if the bridge is already configured
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 5 Sep 2022 08:02:28 +0000 (11:02 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 21 Sep 2022 19:46:48 +0000 (14:46 -0500)
commit18f647850d935d15642952915e1a4fcf6a0bd61f
treee642cf810b5e42af6422c52d1a7b6db2a99c9a41
parent8763e9349296b8ec0adf58ce5c65daa090362b70
PCI: Pass available buses even if the bridge is already configured

If some part of the PCI topology is already configured (by the boot
firmware) but not all, and it includes hotplug bridges, we may need to
extend the bus resources of those bridges to accommodate any future
hotplugs, in the same way we already do with the normal hotplug case.

Pass the available buses to pci_scan_child_bus_extend() even when the
bridge in question is already configured so the bus allocation code can use
these available buses to extend the possible hotplug bridges below.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216000
Link: https://lore.kernel.org/r/20220905080232.36087-3-mika.westerberg@linux.intel.com
Reported-by: Chris Chiu <chris.chiu@canonical.com>
Tested-by: Chris Chiu <chris.chiu@canonical.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pci/probe.c