mbox series

[0/2] PCI: Simplify pci_bus_distribute_available_resources()

Message ID 20190622210310.180905-1-helgaas@kernel.org (mailing list archive)
Headers show
Series PCI: Simplify pci_bus_distribute_available_resources() | expand

Message

Bjorn Helgaas June 22, 2019, 9:03 p.m. UTC
From: Bjorn Helgaas <bhelgaas@google.com>

These are extracted from Nicholas's patch at [1].  I'm pretty sure
these don't change the behavior, but please tell me if I'm wrong.

The second raises some questions about how we distribute resources to
non-hotplug bridges with hotplug bridges below them.  Details in that
commit log.

Nicholas, if you post another revision, feel free to include these at
the beginning.  In that case, you should drop my signed-off-by (which
I always add during the merge process).  Otherwise, let me know if
these look OK and I'll add your signed-off-by.  I dropped it because I
changed things slightly from your original patch, and I didn't want to
attribute any of my errors to you.

[1] https://lore.kernel.org/r/PS2P216MB0642C7A485649D2D787A1C6F80000@PS2P216MB0642.KORP216.PROD.OUTLOOK.COM

Bjorn Helgaas (2):
  PCI: Simplify pci_bus_distribute_available_resources()
  PCI: Skip resource distribution when no hotplug bridges

 drivers/pci/setup-bus.c | 55 +++++++++++++++++++++--------------------
 1 file changed, 28 insertions(+), 27 deletions(-)