[PATCH 2/3] bootstd: usb: Avoid initing USB twice

Jonas Karlman jonas at kwiboo.se
Sat May 6 17:59:57 CEST 2023


Hi Simon,

On 2023-05-06 04:03, Simon Glass wrote:
> This causes crashes on some boards, e.g. rockpro64. In any case, we
> should not do it.
> 
> Check the usb_started flag to avoid this.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  drivers/usb/host/usb_bootdev.c | 3 +++
>  test/boot/bootdev.c            | 5 +++++
>  2 files changed, 8 insertions(+)
> 

This fixes the crash related to usbkbd in stdin env on my rockpro64, so:

Tested-by: Jonas Karlman <jonas at kwiboo.se>

Regards,
Jonas


More information about the U-Boot mailing list