diff options
author | Gary Bisson <gary.bisson@boundarydevices.com> | 2017-01-11 16:51:53 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-14 16:46:23 -0500 |
commit | 8547f45bc54b1a96bfa539f3e1070c5046c54764 (patch) | |
tree | a371e51ad968d3894d4fbdf8acf25e90c9f8f8ab /MAINTAINERS | |
parent | 7f73ca484f792a0d2a7ee09860c32f3d02b3030d (diff) | |
download | u-boot-8547f45bc54b1a96bfa539f3e1070c5046c54764.zip u-boot-8547f45bc54b1a96bfa539f3e1070c5046c54764.tar.gz u-boot-8547f45bc54b1a96bfa539f3e1070c5046c54764.tar.bz2 |
cmd: sata: fix init command return value
Since commit aa6ab905b2, 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: aa6ab905b2 (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>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions