diff options
author | Sean Nyekjaer <sean@geanix.com> | 2019-01-24 15:17:21 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-03-16 13:29:43 +0100 |
commit | 731785df0b68158c282d880de0a86d1db8aec118 (patch) | |
tree | 7136dcfa495c7b2dea126b2a89e5944c346e2ef7 /cmd/fastboot.c | |
parent | 9659eb46af6249b6e4b3712e60a1eb2e87fc48a1 (diff) | |
download | u-boot-731785df0b68158c282d880de0a86d1db8aec118.tar.gz |
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 <sean@geanix.com>
Diffstat (limited to 'cmd/fastboot.c')
-rw-r--r-- | cmd/fastboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <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) @@ -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); } |