U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: "Łukasz Stelmach" <l.stelmach@samsung.com>, u-boot@lists.denx.de
Cc: "Marek Szyprowski" <m.szyprowski@samsung.com>,
	"Łukasz Stelmach" <l.stelmach@samsung.com>
Subject: Re: [PATCH] fastboot: read fastboot buffer address from fastboot_addr_r
Date: Wed, 13 May 2026 13:45:45 +0200	[thread overview]
Message-ID: <87bjejv8gm.fsf@kernel.org> (raw)
In-Reply-To: <20260430201503.320359-1-l.stelmach@samsung.com>

Hi Łukasz,

Thank you for the patch.

Somehow, I was not in copy of this email so I could have missed it.
Please make sure to run get_maintainer.pl next time you submit something.

$ ./scripts/get_maintainer.pl -f drivers/fastboot/

See:
https://docs.u-boot.org/en/latest/CONTRIBUTE.html#contributions

On Thu, Apr 30, 2026 at 22:14, Łukasz Stelmach <l.stelmach@samsung.com> wrote:

> Following the previous advice (link below) check fastbooot_addr_r

fastbooot -> fastboot

> environment variable for fastboot buffer address.
>
> Link: https://lore.kernel.org/u-boot/aWiWFrdwvy7-IK63@sumit-xelite/
> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
> ---
>  drivers/fastboot/fb_common.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
> index 68f92c4b887..4579f30b52e 100644
> --- a/drivers/fastboot/fb_common.c
> +++ b/drivers/fastboot/fb_common.c
> @@ -226,7 +226,9 @@ void fastboot_set_progress_callback(void (*progress)(const char *msg))
>   */
>  void fastboot_init(void *buf_addr, u32 buf_size)
>  {
> -	fastboot_buf_addr = buf_addr ? buf_addr :
> +	void *_buf_addr = (void *)env_get_hex("fastboot_addr_r", 0);
> +
> +	fastboot_buf_addr = buf_addr ? buf_addr : _buf_addr ? _buf_addr :
>  				       (void *)CONFIG_FASTBOOT_BUF_ADDR;

Please also have a look at Quentin's suggestion:
https://lore.kernel.org/all/453e3e7f-e975-42a6-9f44-5aaa9a5fd03f@cherry.de/

>  	fastboot_buf_size = buf_size ? buf_size : CONFIG_FASTBOOT_BUF_SIZE;
>  	fastboot_set_progress_callback(NULL);
> -- 
> 2.47.3

      parent reply	other threads:[~2026-05-13 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20260430201556eucas1p21ad12913ce5c83e8bf5cef3c4f50d81b@eucas1p2.samsung.com>
2026-04-30 20:14 ` [PATCH] fastboot: read fastboot buffer address from fastboot_addr_r Łukasz Stelmach
2026-05-07 11:01   ` Quentin Schulz
2026-05-13 11:45   ` Mattijs Korpershoek [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=87bjejv8gm.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=l.stelmach@samsung.com \
    --cc=m.szyprowski@samsung.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox