]> www.infradead.org Git - users/hch/misc.git/commit
PCI: Set up bridge resources earlier
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 24 Sep 2025 13:42:27 +0000 (16:42 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Sep 2025 21:15:22 +0000 (16:15 -0500)
commita43ac325c7cbbfe72bdf9178059b3ee9f5a2c7dd
tree555efc06723957c60eaf28cf6eba68c0c870f059
parent15c5867b0ae6a47914b45daf3b64e2d2aceb4ee5
PCI: Set up bridge resources earlier

Bridge windows are read twice from PCI Config Space, the first time from
pci_read_bridge_windows(), which does not set up the device's resources.
This causes problems down the road as child resources of the bridge cannot
check whether they reside within the bridge window or not.

Set up the bridge windows already in pci_read_bridge_windows().

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