Commit 988b8b9
PCI: Supply bridge device, not secondary bus, to read window details
[ Upstream commit 281e1f1 ]
Previously we logged information about devices *below* the bridge before
logging information about the bridge itself, e.g.,
pci 0000:00:01.0: [8086:1901] type 01 class 0x060400
pci 0000:01:00.0: [10de:13b6] type 00 class 0x030200
pci 0000:01:00.0: reg 0x10: [mem 0xec000000-0xecffffff]
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:01.0: bridge window [io 0xe000-0xefff]
This is partly because the bridge windows are read in this path:
pci_scan_child_bus_extend
for (devfn = 0; devfn < 256; devfn += 8)
pci_scan_slot(bus, devfn) # scan below bridge
pcibios_fixup_bus(bus)
pci_read_bridge_bases(bus) # read bridge windows
pci_read_bridge_io(bus)
Remove the assumption that the secondary (child) pci_bus already exists by
passing in the bridge device (instead of the pci_bus) and a resource
pointer when reading bridge windows. A future change can use this to log
the bridge details before we enumerate the devices below the bridge.
No functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Stable-dep-of: 9abf79c ("PCI/ACPI: Restrict program_hpx_type2() to AER bits")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 7fd6672 commit 988b8b9
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | | - | |
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
353 | | - | |
354 | 352 | | |
355 | 353 | | |
356 | 354 | | |
| |||
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
363 | | - | |
364 | 361 | | |
365 | 362 | | |
366 | 363 | | |
| |||
384 | 381 | | |
385 | 382 | | |
386 | 383 | | |
387 | | - | |
| 384 | + | |
388 | 385 | | |
389 | | - | |
390 | 386 | | |
391 | 387 | | |
392 | 388 | | |
393 | | - | |
394 | 389 | | |
395 | | - | |
396 | 390 | | |
397 | 391 | | |
398 | 392 | | |
| |||
406 | 400 | | |
407 | 401 | | |
408 | 402 | | |
409 | | - | |
| 403 | + | |
410 | 404 | | |
411 | | - | |
412 | 405 | | |
413 | 406 | | |
414 | 407 | | |
415 | 408 | | |
416 | | - | |
417 | 409 | | |
418 | | - | |
419 | 410 | | |
420 | 411 | | |
421 | 412 | | |
| |||
527 | 518 | | |
528 | 519 | | |
529 | 520 | | |
530 | | - | |
531 | | - | |
532 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
533 | 524 | | |
534 | 525 | | |
535 | 526 | | |
| |||
0 commit comments