From: Heiko Schocher Date: Tue, 14 Apr 2015 07:53:13 +0000 (+0200) Subject: dfu: cmd: trigger watchdog before calling usb_gadget_handle_interrupts X-Git-Tag: submit/tizen/20160318.071304~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2c8c02029c5ac72dafe8af51246af2cf66ae58b;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git dfu: cmd: trigger watchdog before calling usb_gadget_handle_interrupts trigger watchdog before calling usb_gadget_handle_interrupts() This prevents board resets when calling dfu command on boards which have a watchdog. Signed-off-by: Heiko Schocher [ Reedition by Lukasz Majewski to apply to v2014.04 release ] --- diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 12a86d0f2..575e2a5eb 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -21,6 +21,7 @@ */ #include +#include #include #include #include @@ -76,6 +77,7 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (ctrlc()) goto exit; + WATCHDOG_RESET(); usb_gadget_handle_interrupts(controller_index); } exit: