]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: xgene: Assign resources to bus before adding new devices
authorDuc Dang <dhdang@apm.com>
Fri, 7 Nov 2014 01:14:18 +0000 (17:14 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Nov 2014 16:53:30 +0000 (09:53 -0700)
commit336b5be2c56f3cf2252f5a39d344ef67cf9bdf7a
tree8b0dfc4bd5d4a5009fa9ae04629ba6e0a71a1879
parent32f638fc11db0526c706454d9ab4339d55ac89f3
PCI: xgene: Assign resources to bus before adding new devices

The X-Gene PCIe driver assumes pci_scan_root_bus() assigns resources as
proposed in [1].  But we dropped patch [1] because it would break some
architectures, which means the X-Gene PCIe driver is currently broken.

Add calls to scan the bus, assign resources, and add devices in the X-Gene
driver to fix this.

[bhelgaas: changelog]
[1] http://lkml.kernel.org/r/1412000971-9242-11-git-send-email-Liviu.Dudau@arm.com
Signed-off-by: Duc Dang <dhdang@apm.com>
Signed-off-by: Tanmay Inamdar <tinamdar@apm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-xgene.c