]> git.karo-electronics.de Git - karo-tx-linux.git/commit
parisc/PCI: lba: deal with LMMIO/PAT overlaps before creating PCI root bus
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 28 Oct 2011 22:27:17 +0000 (16:27 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 13 Dec 2011 18:42:24 +0000 (10:42 -0800)
commitb21fc821ddecde3afffe7bdb4ae298ec725a9766
treebcfeb7c9baa9ee4fabfb7353afac01ef8a9fcef2
parentf2f9a4b5f8e433b7b65bd2231ea03e0a607cee01
parisc/PCI: lba: deal with LMMIO/PAT overlaps before creating PCI root bus

This moves the truncate_pat_collision() call out of the pcibios_fixup_bus()
path so that when a future patch builds a list of root bus resources for
pci_create_bus(), it can use the truncated LMMIO range.

truncate_pat_collision() used to be called in this path:

    pci_scan_bus_parented
      pci_create_bus
      pci_scan_child_bus
        pcibios_fixup_bus
  lba_fixup_bus
    truncate_pat_collision

All of the PAT and lba_dev resource setup must be done before we call
pci_scan_bus_parented(), so it should be safe to move the
truncate_pat_collision() to just before pci_scan_bus_parented().

CC: linux-parisc@vger.kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/parisc/lba_pci.c