diff options
| author | Simon Glass <[email protected]> | 2023-07-30 11:15:12 -0600 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2023-08-09 23:31:11 +0800 |
| commit | 4c4ccc5a0499cf2abdca95415caf7443c760a26d (patch) | |
| tree | 743d4ea57c5e865d48b3fb0ccd2be6afe5510bdd /drivers | |
| parent | ef8336e2705fce2502383f25d68188c6b1f94dd0 (diff) | |
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/host/usb-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index 02c0138a206..7a03435ba77 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -346,7 +346,7 @@ int usb_init(void) if (controllers_initialized == 0) printf("No working controllers found\n"); - return usb_started ? 0 : -1; + return usb_started ? 0 : -ENOENT; } int usb_setup_ehci_gadget(struct ehci_ctrl **ctlrp) |
