From: Neil Armstrong <neil.armstrong@linaro.org>
To: Carlo Caione <ccaione@baylibre.com>,
u-boot@lists.u-boot-project.org,
GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>
Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>,
Tom Rini <trini@konsulko.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
Sam Day <me@samcday.com>, Julien Masson <jmasson@baylibre.com>,
Vitor Sato Eschholz <vsatoes@baylibre.com>,
David Lechner <dlechner@baylibre.com>,
Lukasz Majewski <lukma@denx.de>, Marek Vasut <marex@denx.de>,
Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Alexey Charkov <alchark@gmail.com>,
Adrian Freihofer <adrian.freihofer@siemens.com>,
Francois Berder <fberder@outlook.fr>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Peter Robinson <pbrobinson@gmail.com>,
Vincent Jardin <vjardin@free.fr>,
Casey Connolly <casey.connolly@linaro.org>,
Heiko Schocher <hs@nabladev.com>
Subject: Re: [PATCH RFC v2 2/5] fastboot: use the common handler for USB reboot
Date: Thu, 23 Jul 2026 10:50:17 +0200 [thread overview]
Message-ID: <9db60818-e50b-49b8-b2b3-3cdb5aaa41a0@linaro.org> (raw)
In-Reply-To: <20260722-ccaione-upstream-spl-fastboot-v2-2-2ba3f71c42bc@baylibre.com>
On 7/22/26 22:43, Carlo Caione wrote:
> USB fastboot resets the device directly from its request-completion
> callback, while the network transports route completed commands through
> fastboot_handle_boot(). Keeping reset policy in the transport makes it
> harder to support callers with a different reset interface.
>
> Send the USB reboot completion through the common handler as
> well. U-Boot proper retains the same do_reset() behavior, while
> execution-phase-specific policy can be contained in the shared code.
>
> Signed-off-by: Julien Masson <jmasson@baylibre.com>
> Signed-off-by: Vitor Sato Eschholz <vsatoes@baylibre.com>
> Signed-off-by: Carlo Caione <ccaione@baylibre.com>
> ---
> drivers/usb/gadget/f_fastboot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
> index 8df0e3f331d..471c0e87042 100644
> --- a/drivers/usb/gadget/f_fastboot.c
> +++ b/drivers/usb/gadget/f_fastboot.c
> @@ -422,7 +422,7 @@ static int fastboot_tx_write_str(const char *buffer)
> static void compl_do_reset(struct usb_ep *ep, struct usb_request *req)
> {
> g_dnl_unregister();
> - do_reset(NULL, 0, 0, NULL);
> + fastboot_handle_boot(FASTBOOT_COMMAND_REBOOT, true);
> }
>
> static unsigned int rx_bytes_expected(struct usb_ep *ep)
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
next prev parent reply other threads:[~2026-07-23 8:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 20:43 [PATCH RFC v2 0/5] Add fastboot to SPL Carlo Caione via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 1/5] fastboot: factor out the USB session runner Carlo Caione via U-Boot
2026-07-22 21:16 ` David Lechner via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 2/5] fastboot: use the common handler for USB reboot Carlo Caione via U-Boot
2026-07-23 8:50 ` Neil Armstrong [this message]
2026-07-28 11:36 ` Carlo Caione
2026-07-22 20:43 ` [PATCH RFC v2 3/5] fastboot: make shared configuration checks phase-aware Carlo Caione via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 4/5] image: sparse: add phase-aware SPL support Carlo Caione via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 5/5] fastboot: add " Carlo Caione via U-Boot
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=9db60818-e50b-49b8-b2b3-3cdb5aaa41a0@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=adrian.freihofer@siemens.com \
--cc=alchark@gmail.com \
--cc=casey.connolly@linaro.org \
--cc=ccaione@baylibre.com \
--cc=dlechner@baylibre.com \
--cc=fberder@outlook.fr \
--cc=hs@nabladev.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jh80.chung@samsung.com \
--cc=jmasson@baylibre.com \
--cc=lukma@denx.de \
--cc=marex@denx.de \
--cc=me@samcday.com \
--cc=mkorpershoek@kernel.org \
--cc=pbrobinson@gmail.com \
--cc=peng.fan@nxp.com \
--cc=quentin.schulz@cherry.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=vjardin@free.fr \
--cc=vsatoes@baylibre.com \
/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