From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: Marek Vasut <marex@denx.de>, <u-boot@lists.denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Subject: Re: [PATCH 1/2] arm: stm32mp: Fix USB boot device report
Date: Mon, 24 Jan 2022 13:14:04 +0100 [thread overview]
Message-ID: <8bdb0b11-ccd8-f066-e4e5-032d4fa0fc9f@foss.st.com> (raw)
In-Reply-To: <20211206205809.20486-1-marex@denx.de>
Hi Marek
On 12/6/21 21:58, Marek Vasut wrote:
> In case the SoC reports the boot device type is USB, it means the SPL was
> loaded via BootROM DFU mode. Currently the spl_boot_device() returns boot
> device as USB host, change it to DFU instead, so the SPL can continue the
> DFU boot and load U-Boot via DFU.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> arch/arm/mach-stm32mp/spl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
> index 405eff68a3b..51fe0698fab 100644
> --- a/arch/arm/mach-stm32mp/spl.c
> +++ b/arch/arm/mach-stm32mp/spl.c
> @@ -43,7 +43,7 @@ u32 spl_boot_device(void)
> case BOOT_SERIAL_UART_8:
> return BOOT_DEVICE_UART;
> case BOOT_SERIAL_USB_OTG:
> - return BOOT_DEVICE_USB;
> + return BOOT_DEVICE_DFU;
> case BOOT_FLASH_NAND_FMC:
> return BOOT_DEVICE_NAND;
> case BOOT_FLASH_NOR_QSPI:
Applied to u-boot-stm/master
Thanks
Patrice
prev parent reply other threads:[~2022-01-24 12:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 20:58 [PATCH 1/2] arm: stm32mp: Fix USB boot device report Marek Vasut
2021-12-06 20:58 ` [PATCH 2/2] ARM: dts: stm32: Add DFU support for DHCOR recovery Marek Vasut
2021-12-07 10:02 ` Patrice CHOTARD
2022-01-24 12:14 ` Patrice CHOTARD
2021-12-07 10:01 ` [PATCH 1/2] arm: stm32mp: Fix USB boot device report Patrice CHOTARD
2022-01-24 12:14 ` Patrice CHOTARD [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=8bdb0b11-ccd8-f066-e4e5-032d4fa0fc9f@foss.st.com \
--to=patrice.chotard@foss.st.com \
--cc=marex@denx.de \
--cc=patrick.delaunay@foss.st.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