]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: give preference to non-PCI_REGION_SYS_MEMORY regions when matching
authorKumar Gala <galak@kernel.crashing.org>
Fri, 6 Feb 2009 15:49:32 +0000 (09:49 -0600)
committerWolfgang Denk <wd@denx.de>
Sat, 7 Feb 2009 22:50:08 +0000 (23:50 +0100)
commit2d43e873a29ca4959ba6a30fc7fb396d3fd0dccf
tree981d68cdac14da581e8efad49ff2ec069d7dbe53
parentff4e66e93c1ad47644be3b4ffd6a46e1ce9b6612
pci: give preference to non-PCI_REGION_SYS_MEMORY regions when matching

When we search for an address match in pci_hose_{phys_to_bus,bus_to_phys}
we should give preference to memory regions that aren't system memory.

Its possible that we have over mapped system memory in the regions and
we want to avoid depending on the order of the regions.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/pci/pci.c