[U-Boot] [RESEND] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing
Lukasz Majewski
l.majewski at samsung.com
Wed Apr 8 11:01:13 CEST 2015
Hi Paul,
> Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
> ---
> common/cmd_fastboot.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> index 346ab80..7956a5b 100644
> --- a/common/cmd_fastboot.c
> +++ b/common/cmd_fastboot.c
> @@ -23,6 +23,8 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag,
> int argc, char *const argv[]) if (!g_dnl_board_usb_cable_connected())
> { puts("\rUSB cable not detected.\n" \
> "Command exit.\n");
> + g_dnl_unregister();
> + g_dnl_clear_detach();
> return CMD_RET_FAILURE;
> }
>
Applied to u-boot-dfu branch.
Thanks!
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
More information about the U-Boot
mailing list