]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Handle IORESOURCE_PCI_FIXED when assigning resources
authorDavid Daney <david.daney@cavium.com>
Thu, 29 Oct 2015 22:35:39 +0000 (17:35 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Oct 2015 22:35:39 +0000 (17:35 -0500)
commit15c7e7ef1a596bec7a1eeb2d79e628779accafd4
tree8d4fe9e280061a166d8c4c28f131ec02e813d999
parent89195856588d361a240d29d57abcf24d3be50f36
PCI: Handle IORESOURCE_PCI_FIXED when assigning resources

The new Enhanced Allocation (EA) capability support (patches to follow)
creates resources with the IORESOURCE_PCI_FIXED set.  During resource
assignment in pci_bus_assign_resources(), IORESOURCE_PCI_FIXED resources
are not given a parent.  This, in turn, causes pci_enable_resources() to
fail with a "not claimed" error.

So, in __pci_bus_assign_resources(), for IORESOURCE_PCI_FIXED resources,
try to request the resource from a parent bus.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Sean O. Stalley <sean.stalley@intel.com>
drivers/pci/setup-bus.c