mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <ahmad@a3f.at>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] ARM: cpu: board-dt-2nd: rename of_find_mem for more generic use
Date: Mon, 22 Feb 2021 08:59:52 +0100	[thread overview]
Message-ID: <20210222075952.GH10966@pengutronix.de> (raw)
In-Reply-To: <20210222063052.566792-1-ahmad@a3f.at>

On Mon, Feb 22, 2021 at 07:30:51AM +0100, Ahmad Fatoum wrote:
> of_find_mem can be used for generic DT images for other architectures as
> well. Prepare for the move by giving it a more descriptive name and
> type to reflect that it operates read-only on a FDT.
> 
> Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
> ---
>  arch/arm/cpu/board-dt-2nd.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/cpu/board-dt-2nd.c b/arch/arm/cpu/board-dt-2nd.c
> index 4e7d575e8a71..7a8155b7b01b 100644
> --- a/arch/arm/cpu/board-dt-2nd.c
> +++ b/arch/arm/cpu/board-dt-2nd.c
> @@ -10,7 +10,7 @@
>  #include <asm/sections.h>
>  #include <linux/libfdt.h>
>  
> -static void of_find_mem(void *fdt, unsigned long *membase, unsigned long *memsize)
> +static void fdt_find_mem(const void *fdt, unsigned long *membase, unsigned long *memsize)
>  {
>  	const __be32 *nap, *nsp, *reg;
>  	uint32_t na, ns;
> @@ -85,7 +85,7 @@ static noinline void dt_2nd_continue_aarch64(void *fdt)
>  	if (!fdt)
>  		hang();
>  
> -	of_find_mem(fdt, &membase, &memsize);
> +	fdt_find_mem(fdt, &membase, &memsize);
>  
>  	barebox_arm_entry(membase, memsize, fdt);
>  }
> @@ -114,7 +114,7 @@ static noinline void dt_2nd_continue(void *fdt)
>  	if (!fdt)
>  		hang();
>  
> -	of_find_mem(fdt, &membase, &memsize);
> +	fdt_find_mem(fdt, &membase, &memsize);
>  
>  	barebox_arm_entry(membase, memsize, fdt);
>  }
> -- 
> 2.30.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2021-02-22  7:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22  6:30 Ahmad Fatoum
2021-02-22  6:30 ` [PATCH 2/2] pbl: provide externally visible fdt_find_mem Ahmad Fatoum
2021-02-22  7:59 ` Sascha Hauer [this message]

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=20210222075952.GH10966@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=ahmad@a3f.at \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox