Files
u-boot/include
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-06-18 14:43:13 -04:00
2018-06-24 08:56:04 +08:00
2018-06-13 07:49:13 -04:00
2018-06-13 07:49:12 -04:00
2018-04-06 17:04:33 -04:00
2018-07-02 14:14:20 -05:00
2018-05-23 17:30:03 -04:00
2018-06-03 15:27:21 +02:00
2018-05-26 12:46:50 -04:00
2018-05-26 18:19:17 -04:00
2018-05-11 09:23:43 +02:00