From 731785df0b68158c282d880de0a86d1db8aec118 Mon Sep 17 00:00:00 2001 From: Sean Nyekjaer Date: Thu, 24 Jan 2019 15:17:21 +0100 Subject: [PATCH] cmd: fastboot: handle watchdog while waiting for fastboot commands. Watchdog is not handled while waiting for fastboot commands. Tested on a i.MX6 ULL EVK board. Signed-off-by: Sean Nyekjaer --- cmd/fastboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/fastboot.c b/cmd/fastboot.c index 0be83b78ac..1b4215114d 100644 --- a/cmd/fastboot.c +++ b/cmd/fastboot.c @@ -13,6 +13,7 @@ #include #include #include +#include static int do_fastboot_udp(int argc, char *const argv[], uintptr_t buf_addr, size_t buf_size) @@ -74,6 +75,7 @@ static int do_fastboot_usb(int argc, char *const argv[], break; if (ctrlc()) break; + WATCHDOG_RESET(); usb_gadget_handle_interrupts(controller_index); } -- 2.25.1