[PATCH 10/13] PCI: hotplug: octep: Convert to pci_assign_unassigned_bus_resources()

From: Ilpo Järvinen

Date: Mon Nov 16 2026 - 10:26:11 EST


The Octeon hotplug driver scans single device and then attempts to
assign its resource using pci_bus_assign_resources(). That function
makes bridge window sizing disjoint from the assignment phase and is
going to be removed.

Convert pci_bus_assign_resources() to
pci_assign_unassigned_bus_resources(). If no other bridges are involved,
the extra sizing should be no-op.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
---
drivers/pci/hotplug/octep_hp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/hotplug/octep_hp.c b/drivers/pci/hotplug/octep_hp.c
index a0a7f9ccb8fa..e793fc3012fd 100644
--- a/drivers/pci/hotplug/octep_hp.c
+++ b/drivers/pci/hotplug/octep_hp.c
@@ -79,7 +79,7 @@ static void octep_hp_enable_pdev(struct octep_hp_controller *hp_ctrl,
/* Scan the device and add it to the bus */
hp_slot->hp_pdev = pci_scan_single_device(hp_ctrl->pdev->bus,
hp_slot->hp_devfn);
- pci_bus_assign_resources(hp_ctrl->pdev->bus);
+ pci_assign_unassigned_bus_resources(hp_ctrl->pdev->bus);
pci_bus_add_device(hp_slot->hp_pdev);

dev_dbg(&hp_slot->hp_pdev->dev, "Enabled slot %s\n",
--
2.47.3