]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Check invalid align earlier in pbus_size_mem()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 19 Dec 2025 17:40:25 +0000 (19:40 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Jan 2026 22:36:52 +0000 (16:36 -0600)
commitc10fe0c0e6977254e2b7d4fed18e71501c958d65
treea4336d6ee96afa29fde7d30f599c1bf7893b2d07
parent9629f71722bb994f4b95088bc37a14f9aeaa5f90
PCI: Check invalid align earlier in pbus_size_mem()

Check for invalid align before any bridge window sizing actions in
pbus_size_mem() to avoid need to roll back any sizing calculations.

Placing the check earlier will make it easier to add more optional size
related calculations at where the SR-IOV logic currently is in
pbus_size_mem().

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-13-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c