Michal Simek 27eb7bce39 common: command: Handle USAGE failure separately
command_ret_t enum contains 3 return values but only two are handled
now. Extend cmd_process_error() and handle CMD_RET_USAGE separately.

These commands are affected by this change.
cmd/demo.c
cmd/efi.c
cmd/gpio.c
cmd/qfw.c
cmd/x86/fsp.c
test/dm/cmd_dm.c

And scripts shouldn't be affected because return value is not 0. But
every command implementation can choose what it is correct to pass.
I would expect that RET_USAGE is called when parameters are not
correctly passed (have incorrect value, missing parameters)
and RET_FAILURE when correct parameters are passed but command fails.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromum.org>
2018-07-19 10:49:53 +02:00
..
2018-07-10 16:55:58 -04:00
2018-06-19 07:31:45 -04:00
2018-06-13 07:49:13 -04:00
2016-02-06 12:00:59 +01:00
2016-05-02 18:37:09 -04:00
2018-06-18 13:55:13 -04:00
2018-06-05 20:19:08 -04:00
2017-08-16 08:30:24 -04:00