]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Disable non-claimed bridge window
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 29 Aug 2025 13:10:56 +0000 (16:10 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2025 16:19:06 +0000 (11:19 -0500)
commitb15f45ab65e2ce04339fbd54387a9209529d315b
tree4c4c4eb34a6347a868a53ee87f9bc7a3402e3c3c
parent2ee33aa14d3f2e92ba8ae80443f2cd9b575f08cb
PCI: Disable non-claimed bridge window

If clipping or claiming the bridge window fails, the bridge window is left
in a state that does not match the kernel's view on what the bridge window
is.

Disable the bridge window by writing the magic disable value into the Base
and Limit Registers if clipping or claiming failed. To detect if claiming
the resource was successful, add res->parent checks into the bridge setup
functions.

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