mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
cmd: dfu: Propagate error if dfu gadget fails
On systems without usb gadget dfu core fails which was reported by error
but command itself returns pass which breaks any usage in a script.
That's why propagate error from run_usb_dnl_gadget().
Fixes: 16297cfb2a
("usb: new board-specific USB init interface")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
4274dc3947
commit
74fe3f2ef3
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ static int do_dfu(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||||
int controller_index = simple_strtoul(usb_controller, NULL, 0);
|
int controller_index = simple_strtoul(usb_controller, NULL, 0);
|
||||||
bool retry = false;
|
bool retry = false;
|
||||||
do {
|
do {
|
||||||
run_usb_dnl_gadget(controller_index, "usb_dnl_dfu");
|
ret = run_usb_dnl_gadget(controller_index, "usb_dnl_dfu");
|
||||||
|
|
||||||
if (dfu_reinit_needed) {
|
if (dfu_reinit_needed) {
|
||||||
dfu_free_entities();
|
dfu_free_entities();
|
||||||
|
|
Loading…
Reference in a new issue