From: Sean Nyekjaer Date: Thu, 24 Jan 2019 14:17:21 +0000 (+0100) Subject: cmd: fastboot: handle watchdog while waiting for fastboot commands. X-Git-Tag: v2019.04~28^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=731785df0b68158c282d880de0a86d1db8aec118;p=oweals%2Fu-boot.git 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 --- 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); }