Merge branch 'pci/resource'
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 5 Oct 2022 22:32:54 +0000 (17:32 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 5 Oct 2022 22:32:54 +0000 (17:32 -0500)
commit99e2c73df882096d8139323f9827195718b50fcb
treed9af32dc7e7f94a99141c959f6dfff9718a23fb1
parentc3acb5661986e2b9bafa2900307d37752c94fb62
parent0e32818397426a688f598f35d3bc762eca6d7592
Merge branch 'pci/resource'

- Distribute resources to unconfigured hotplug bridges at boot-time (not
  just when hot-adding such a bridge), which makes hot-adding devices to
  docks work (Mika Westerberg)

- Fix the "revert to firmware assignment" code so we do the revert only if
  the address is actually reachable.  Previously we sometimes assigned
  addresses that could not be reached via upstream bridges (Maciej W.
  Rozycki)

* pci/resource:
  PCI: Sanitise firmware BAR assignments behind a PCI-PCI bridge
  PCI: Fix typo in pci_scan_child_bus_extend()
  PCI: Fix whitespace and indentation
  PCI: Distribute available resources for root buses, too
  PCI: Move pci_assign_unassigned_root_bus_resources()
  PCI: Pass available buses even if the bridge is already configured
  PCI: Fix used_buses calculation in pci_scan_child_bus_extend()