public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RESEND] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing
@ 2015-03-28 17:22 Paul Kocialkowski
  2015-03-30  8:06 ` Lukasz Majewski
  2015-04-08  9:01 ` Lukasz Majewski
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Kocialkowski @ 2015-03-28 17:22 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Paul Kocialkowski <contact@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;
 	}
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-08  9:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-28 17:22 [U-Boot] [RESEND] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing Paul Kocialkowski
2015-03-30  8:06 ` Lukasz Majewski
2015-03-30 13:28   ` Paul Kocialkowski
2015-04-02 17:11   ` Marek Vasut
2015-04-03  7:35     ` Lukasz Majewski
2015-04-03  8:09       ` Marek Vasut
2015-04-08  9:01 ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox