u-boot/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
..
adc sandbox: add ADC driver 2015-11-02 10:38:00 +09:00
bios_emulator Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
block Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
clk rockchip: rk3288: Add clock driver 2015-09-02 21:28:23 -06:00
core Merge branch 'master' of git://git.denx.de/u-boot-net 2015-10-29 16:30:33 -04:00
cpu x86: Move MP initialization codes into a common place 2015-07-14 18:03:16 -06:00
crypto crypto/fsl: SEC driver cleanup for 64 bit and endianness 2015-10-29 10:33:57 -07:00
ddr Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
demo drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
dfu dfu: dfu_sf: Pass duplicate devstr to parse_dev 2015-11-03 17:29:33 +01:00
dma dma: keystone_nav: Fix linkram size 2015-10-22 14:22:22 -04:00
fpga arm: socfpga: Fix FPGA bitstream programming routine 2015-08-08 14:14:04 +02:00
gpio nios2 : convert altera_pio to driver model 2015-10-23 07:37:03 +08:00
hwmon Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2015-10-30 12:56:58 -04:00
input video: Drop DEV_FLAGS_SYSTEM flag 2015-11-05 08:22:21 +01:00
led dm: led: Tidy up SPL options for the led and led-gpio 2015-09-02 21:28:22 -06:00
memory Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
misc misc: altera_sysid: minor clean up 2015-11-06 09:14:12 +08:00
mmc Merge git://git.denx.de/u-boot-samsung 2015-11-05 07:46:45 -05:00
mtd mtd: uboot: Add meaningful error message 2015-11-12 13:17:28 -05:00
net net: altera_tse: add mSG-DMA support 2015-11-12 08:26:59 +08:00
pci pci: fix checking PCI_REGION_MEM in pci_hose_phys_to_bus() 2015-11-12 13:19:03 -05:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
pinctrl Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
power dm: regulator: add function device_get_supply_regulator() 2015-11-02 10:38:00 +09:00
pwm pwm: imx: Remove unreachable code 2015-05-26 14:13:12 +02:00
qe driver/qe: use strncpy instead of strcpy 2015-08-03 12:06:36 -07:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
remoteproc remoteproc: Introduce a sandbox dummy driver 2015-10-22 14:18:39 -04:00
rtc rtc: Add MCP79411 support to DS1307 rtc driver 2015-11-04 15:19:12 -08:00
serial altera_uart: Adjust the declaration of debug_uart_init() 2015-11-06 12:56:46 +08:00
soc Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi spi: altera_spi: minor clean up 2015-11-06 09:14:12 +08:00
thermal thermal: imx_thermal: Do not print on error 2015-09-13 10:49:21 +02:00
timer timer: altera_timer: minor clean up 2015-11-06 09:14:12 +08:00
tpm dm: tpm: Drop CONFIG_DM_TPM 2015-10-23 09:42:28 -06:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb fastboot: Implement NAND backend 2015-11-12 13:18:58 -05:00
video video: Drop DEV_EXT_VIDEO flag 2015-11-05 08:24:42 +01:00
watchdog ls102xa: Fix reset hang 2015-10-12 12:56:32 -04:00
Kconfig dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00
Makefile Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00