All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] qemu-ppce500: pass 'range_id' around in pci_map_region
Date: Mon, 21 Dec 2015 11:26:50 +0100	[thread overview]
Message-ID: <5677D3EA.3080902@suse.de> (raw)
In-Reply-To: <1450689599-65471-1-git-send-email-yanmiaobest@gmail.com>



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@gmail.com>

Oops :).

Reviewed-by: Alexander Graf <agraf@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;
>  
> 

  parent reply	other threads:[~2015-12-21 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21  9:19 [U-Boot] [PATCH] qemu-ppce500: pass 'range_id' around in pci_map_region Miao Yan
2015-12-21  9:45 ` Bin Meng
2015-12-21 10:26 ` Alexander Graf [this message]
2016-01-04 22:23 ` [U-Boot] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5677D3EA.3080902@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.