Files
u-boot-tk1-som/drivers
Cheng Gu 3526285068 pci: fix checking PCI_REGION_MEM in pci_hose_phys_to_bus()
When converting between PCI bus and phys addresses, a two pass search
was introduced with preference to non-PCI_REGION_SYS_MEMORY regions.
See commit 2d43e873a2.

However, since PCI_REGION_MEM is defined as 0, the if statement was
always asserted true: ((flags & PCI_REGION_MEM) == PCI_REGION_MEM)

This patch uses PCI_REGION_TYPE bit to check if the region is
PCI_REGION_MEM: ((flags & PCI_REGION_TYPE) == PCI_REGION_MEM)

Signed-off-by: Cheng Gu <chenggu@marvell.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2015-11-12 13:19:03 -05:00
..
2015-11-02 10:38:00 +09:00
2015-09-02 21:28:23 -06:00
2015-10-22 14:22:22 -04:00
2015-11-05 08:22:21 +01:00
2015-11-06 09:14:12 +08:00
2015-11-12 08:26:59 +08:00
2015-05-26 14:13:12 +02:00
2015-11-06 09:14:12 +08:00
2015-11-06 09:14:12 +08:00
2015-10-23 09:42:28 -06:00
2015-11-12 13:18:58 -05:00
2015-11-05 08:24:42 +01:00
2015-10-12 12:56:32 -04:00