]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add generic pci_bus_claim_resources()
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 8 Jun 2016 11:04:47 +0000 (12:04 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Jun 2016 16:48:59 +0000 (11:48 -0500)
commit957cede807e1016654f566e156850d31a67c9757
tree4d927ae75b8bfc8a75e74cf7d355b6b13412d870
parent7672ccb36d4896f1d07447dcce0c698beb138f9b
PCI: Add generic pci_bus_claim_resources()

All PCI resources (bridge windows and BARs) should be inserted in the
iomem_resource and ioport_resource trees so we know what space is occupied
and what is available for other devices.  There's nothing arch-specific
about this, but it is currently done by arch-specific code.

Add a generic pci_bus_claim_resources() interface so we can migrate away
from the arch-specific code.

[bhelgaas: changelog]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Yinghai Lu <yinghai@kernel.org>
drivers/pci/setup-bus.c
include/linux/pci.h