All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Mattijs Korpershoek <mkorpershoek@baylibre.com>,
	Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	u-boot@lists.denx.de
Cc: Michael Trimarchi <michael@amarulasolutions.com>,
	Lukasz Majewski <lukma@denx.de>,
	linux-amarula@amarulasolutions.com
Subject: Re: [PATCH v3] usb: gadget: fastboot: detach usb just before rebooting
Date: Tue, 10 Jan 2023 11:37:49 +0100	[thread overview]
Message-ID: <1f2c5d74-faae-42f8-5d4d-dfc08cb093aa@denx.de> (raw)
In-Reply-To: <87v8leiya7.fsf@mkorpershoek-xps-13-9370.home>

On 1/10/23 09:33, Mattijs Korpershoek wrote:
> Hi Dario,

Hello everyone,

> Thank you for your patch.
> 
> On Sat, Jan 07, 2023 at 17:48, Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote:
> 
>> The patch fixes the following error when updating a BSH SMM S2 board:
>> 3:72>Start Cmd:FB[-t 8000]: ucmd nand write ${loadaddr} nanddtb ${filesize}
>> 3:72>Okay (0.023s)
>> 3:72>Start Cmd:FB: reboot
>> 3:72>Fail Bulk(R):LIBUSB_ERROR_IO(0s)
>>
>> The "fastboot reboot" command detaches the USB when it still needs to be
>> used. So let's detach the USB just before the reset.
>>
>> CC: Mattijs Korpershoek <mkorpershoek@baylibre.com>
>> Fixes: 5f7e01e9d5d800 ("usb: gadget: fastboot: detach usb on reboot commands")
>> Suggested-by: Michael Trimarchi <michael@amarulasolutions.com>
>> Co-developed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
>> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> 
> I've re-ran this on my vim3l. This patch, alongside with an
> implementation of usb_gadget_ops.pullup() in
> drivers/usb/gadget/dwc2_udc_otg.c also fixes the issue described in
> commit 5f7e01e9d5d800 ("usb: gadget: fastboot: detach usb on reboot commands")
> 
> Tested-by Mattijs Korpershoek <mkorpershoek@baylibre.com>
> 
> I will submit the pullup() implementation on my end, indepently from
> this change.
> 
> Marek, is it possible to pick this up to resolve Dario's flashing problems?

Applied both to usb/master.

Thanks to both of you for figuring it all out, much appreciated!

      parent reply	other threads:[~2023-01-10 10:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-07 16:48 [PATCH v3] usb: gadget: fastboot: detach usb just before rebooting Dario Binacchi
2023-01-10  8:33 ` Mattijs Korpershoek
2023-01-10  9:14   ` Mattijs Korpershoek
2023-01-10 10:37   ` Marek Vasut [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=1f2c5d74-faae-42f8-5d4d-dfc08cb093aa@denx.de \
    --to=marex@denx.de \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=lukma@denx.de \
    --cc=michael@amarulasolutions.com \
    --cc=mkorpershoek@baylibre.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.