summaryrefslogtreecommitdiff
path: root/common/cmd_fastboot.c
diff options
context:
space:
mode:
authorStefano Babic <[email protected]>2014-12-30 13:04:09 +0100
committerStefano Babic <[email protected]>2014-12-30 13:04:38 +0100
commit4e0114d9679173cfe8bfaffb8b4fb4bbf8cdaa10 (patch)
tree2a909fd0434753a0e5b252afcda5aeb23f21ac26 /common/cmd_fastboot.c
parent7ae350a0305de592faa8903255c988d4e6afb194 (diff)
parent125738e819a3b9d15210794b3dcef9f4d9bcf866 (diff)
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <[email protected]>
Diffstat (limited to 'common/cmd_fastboot.c')
-rw-r--r--common/cmd_fastboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index 909616dcb7f..b72f4f310d8 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -15,17 +15,21 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
int ret;
+ g_dnl_clear_detach();
ret = g_dnl_register("usb_dnl_fastboot");
if (ret)
return ret;
while (1) {
+ if (g_dnl_detach())
+ break;
if (ctrlc())
break;
usb_gadget_handle_interrupts();
}
g_dnl_unregister();
+ g_dnl_clear_detach();
return CMD_RET_SUCCESS;
}