All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Sam Protsenko <semen.protsenko@linaro.org>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>
Cc: Lukasz Majewski <lukma@denx.de>, Tom Rini <trini@konsulko.com>,
	Casey Connolly <casey.connolly@linaro.org>,
	Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
	u-boot@lists.denx.de
Subject: Re: [PATCH] dfu: Fix dfu_config_interfaces() for single interface DFU syntax
Date: Tue, 15 Jul 2025 11:24:03 +0200	[thread overview]
Message-ID: <87y0splscs.fsf@kernel.org> (raw)
In-Reply-To: <CAPLW+4=C0rLu5GAFNYHFrraca0azW_t4QR0zN+6tmBD6B4oazg@mail.gmail.com>

On Fri, Jul 11, 2025 at 15:14, Sam Protsenko <semen.protsenko@linaro.org> wrote:

> On Fri, Jul 11, 2025 at 3:02 AM Mattijs Korpershoek
> <mkorpershoek@kernel.org> wrote:
>>
>> Hi Sam,
>>
>> Thank you for the patch.

[...]

>>
>> Good catch! I can indeed reproduce this on sandbox after enabling
>> CMD_DFU:
>>
>> $ ./u-boot -T
>>
>> [...]
>>
>> => setenv dfu_alt_info "rawemmc raw 0 0x747c000 mmcpart 1;"
>> => dfu list
>> [1]    116917 segmentation fault (core dumped)  ./u-boot -T
>>
>> And I confirm it's fixed with this patch.
>>
>> Thanks for all the details, it makes the review and the testing
>> so much easier!
>>
>
> Sometimes it takes longer to write a commit message than to come up
> with the patch itself, hehe. I also tried to come up with some test
> for that use case, but when you run the Py test suite on the sandbox
> -- it just skips the DFU test. I figured some env hooks have to be
> provided to make it work, but it took too much time for me already, so
> I kinda ended up skipping that part.

Yes, we should definitely work on enabling testing DFU with sandbox.
This is out of scope for this patch, but I've opened a TODO item
for that here:

https://source.denx.de/u-boot/custodians/u-boot-dfu/-/issues/7

Thanks again for the fix.

Mattijs

>
>> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
>>
>> > ---
>> >  drivers/dfu/dfu.c | 2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
>> > index 756569217bbb..eefdf44ec877 100644
>> > --- a/drivers/dfu/dfu.c
>> > +++ b/drivers/dfu/dfu.c
>> > @@ -147,7 +147,7 @@ int dfu_config_interfaces(char *env)
>> >                       break;
>> >               a = strsep(&s, "&");
>> >               if (!a)
>> > -                     a = s;
>> > +                     a = d;
>> >               do {
>> >                       part = strsep(&a, ";");
>> >                       part = skip_spaces(part);
>> > --
>> > 2.39.5

  reply	other threads:[~2025-07-15  9:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-09  4:23 [PATCH] dfu: Fix dfu_config_interfaces() for single interface DFU syntax Sam Protsenko
2025-07-11  8:02 ` Mattijs Korpershoek
2025-07-11 20:14   ` Sam Protsenko
2025-07-15  9:24     ` Mattijs Korpershoek [this message]
2025-07-15  9:28 ` Mattijs Korpershoek

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=87y0splscs.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=casey.connolly@linaro.org \
    --cc=lukma@denx.de \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=semen.protsenko@linaro.org \
    --cc=trini@konsulko.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 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.