[U-Boot] [PATCH] qemu-ppce500: pass 'range_id' around in pci_map_region

Alexander Graf agraf at suse.de
Mon Dec 21 11:26:50 CET 2015



On 21.12.15 10:19, Miao Yan wrote:
> In pci_map_region(), pass 'range_id' to fdt_read_range(),
> otherwise the same address will be mapped again in other
> calls to pci_map_region()
> 
> Signed-off-by: Miao Yan <yammiaobest at gmail.com>

Oops :).

Reviewed-by: Alexander Graf <agraf at suse.de>


Alex

> ---
>  board/freescale/qemu-ppce500/qemu-ppce500.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/board/freescale/qemu-ppce500/qemu-ppce500.c
> index a0fca0d..6cb5692 100644
> --- a/board/freescale/qemu-ppce500/qemu-ppce500.c
> +++ b/board/freescale/qemu-ppce500/qemu-ppce500.c
> @@ -81,7 +81,7 @@ static int pci_map_region(void *fdt, int pci_node, int range_id,
>  	ulong map_addr;
>  	int r;
>  
> -	r = fdt_read_range(fdt, pci_node, 0, NULL, &addr, &size);
> +	r = fdt_read_range(fdt, pci_node, range_id, NULL, &addr, &size);
>  	if (r)
>  		return r;
>  
> 


More information about the U-Boot mailing list