Gary Bisson 8547f45bc5 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>
2017-01-14 16:46:23 -05:00
..
2016-08-16 11:44:09 +08:00
2016-02-06 12:00:59 +01:00
2016-10-31 10:13:17 -04:00
2016-03-22 12:16:08 -04:00
2016-03-14 15:34:50 -06:00
2016-09-09 15:53:14 -04:00
2016-05-02 18:37:09 -04:00
2016-04-18 17:11:36 -04:00
2016-07-16 09:43:12 -04:00
2016-01-25 10:39:43 -05:00
2016-02-06 12:00:59 +01:00
2016-03-22 12:16:13 -04:00
2016-10-31 10:13:18 -04:00
2017-01-12 13:16:26 -05:00
2016-12-01 11:09:44 +09:00
2016-01-25 10:39:43 -05:00
2016-07-24 20:36:29 -05:00
2016-09-01 20:08:48 -05:00
2016-12-27 11:24:18 -05:00
2016-10-06 20:57:42 -04:00
2016-09-07 08:49:02 -04:00
2016-09-12 08:44:54 -04:00
2016-03-27 09:12:55 -04:00
2016-02-06 12:00:59 +01:00
2016-02-26 08:53:10 -07:00