]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: usb: Avoid initing USB twice
authorSimon Glass <sjg@chromium.org>
Sat, 6 May 2023 02:03:04 +0000 (20:03 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 13 May 2023 13:52:32 +0000 (09:52 -0400)
commit8c29b73278d66c029b98caecba81831ef6dc472a
treee6aabd26acd9f7bd57733251c26137a248d57749
parent9fea3a799dde140f2d75eeb4560a5c3237ca991d
bootstd: usb: Avoid initing USB twice

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@chromium.org>
Tested-by: Jonas Karlman <jonas@kwiboo.se>
Tested-by: Tom Rini <trini@konsulko.com>
drivers/usb/host/usb_bootdev.c
test/boot/bootdev.c