]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Use resource_assigned() in setup-bus.c algorithm
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 19 Dec 2025 17:40:28 +0000 (19:40 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Jan 2026 22:36:52 +0000 (16:36 -0600)
commit1a5de84c3ae62244e06b4f9f768c874035da837a
tree182f5b4b8fa10b8dcfb531aab3601de0c9dc4036
parent2aa7c47a681f54b5cf4d98e13447be2ea5fb5af3
PCI: Use resource_assigned() in setup-bus.c algorithm

Many places in the resource fitting and assignment algorithm want to
know if the resource is assigned into the resource tree or not. Convert
open-coded ->parent checks to use resource_assigned().

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20251219174036.16738-16-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c