diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-03-28 17:22:49 (GMT) |
---|---|---|
committer | Lukasz Majewski <l.majewski@samsung.com> | 2015-04-14 08:19:05 (GMT) |
commit | a32d27912961040230320268d6cde80e9442dc33 (patch) | |
tree | a699188d66085600f1578a17d12d967f4beded4a /common/cmd_fastboot.c | |
parent | e2ec3e461250fc82781c8a83387c140c6fc30a5a (diff) | |
download | u-boot-fsl-qoriq-a32d27912961040230320268d6cde80e9442dc33.tar.xz |
fastboot: Proper download gadget unregister and clear when cable is missing
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'common/cmd_fastboot.c')
-rw-r--r-- | common/cmd_fastboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index 30bfc9b..d52ccfb 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; } |