]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: Return -ENOENT when no devices are found
authorSimon Glass <sjg@chromium.org>
Sun, 30 Jul 2023 17:15:12 +0000 (11:15 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 9 Aug 2023 15:31:11 +0000 (23:31 +0800)
commit4c4ccc5a0499cf2abdca95415caf7443c760a26d
tree743d4ea57c5e865d48b3fb0ccd2be6afe5510bdd
parentef8336e2705fce2502383f25d68188c6b1f94dd0
usb: Return -ENOENT when no devices are found

When USB finds no devices it currently returns -EPERM which bootstd does
not understand. This causes other bootdevs of the same priority to be
skipped.

Fix this by returning the correct error code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/host/usb-uclass.c
include/usb.h