[U-Boot] [PATCH] cmd: fastboot: handle watchdog while waiting for fastboot commands.

Sean Nyekjaer sean at geanix.com
Thu Jan 24 14:17:21 UTC 2019


Watchdog is not handled while waiting for fastboot commands.

Tested on a i.MX6 ULL EVK board.

Signed-off-by: Sean Nyekjaer <sean at geanix.com>
---
 cmd/fastboot.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index e6ae0570d5..f520d907ff 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -13,6 +13,7 @@
 #include <fastboot.h>
 #include <net.h>
 #include <usb.h>
+#include <watchdog.h>
 
 static int do_fastboot_udp(int argc, char *const argv[],
 			   uintptr_t buf_addr, size_t buf_size)
@@ -69,6 +70,7 @@ static int do_fastboot_usb(int argc, char *const argv[],
 			break;
 		if (ctrlc())
 			break;
+		WATCHDOG_RESET();
 		usb_gadget_handle_interrupts(controller_index);
 	}
 
-- 
2.20.1



More information about the U-Boot mailing list