Forked from
KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
-
Gary Bisson authored
Since commit aa6ab905, sata_initialize returns -1 if init_sata or scan_sata fails. But this return value becomes the do_sata return value which is equivalent to CMD_RET_USAGE. In case one issues 'sata init' and that the hardware fails to initialize, there's no need to display the command usage. Instead the command shoud just return the CMD_RET_FAILURE value. Fixes: aa6ab905 (sata: fix sata command can not being executed bug) Signed-off-by:
Gary Bisson <gary.bisson@boundarydevices.com> Reviewed-by:
Eric Nelson <eric@nelint.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
Gary Bisson authoredSince commit aa6ab905, sata_initialize returns -1 if init_sata or scan_sata fails. But this return value becomes the do_sata return value which is equivalent to CMD_RET_USAGE. In case one issues 'sata init' and that the hardware fails to initialize, there's no need to display the command usage. Instead the command shoud just return the CMD_RET_FAILURE value. Fixes: aa6ab905 (sata: fix sata command can not being executed bug) Signed-off-by:
Gary Bisson <gary.bisson@boundarydevices.com> Reviewed-by:
Eric Nelson <eric@nelint.com> Reviewed-by:
Simon Glass <sjg@chromium.org>