summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2015-04-14 09:53:13 +0200
committerLukasz Majewski <l.majewski@samsung.com>2015-04-14 10:18:49 +0200
commit0a9ac5cb5e3c5a7f0c231432a0f7b690a03d8c8b (patch)
treed695fa36a65644e84fc84fa6411608d4adeffee0 /common
parentee02a65e996c59efd2371cb615b5028bd61d9737 (diff)
downloadu-boot-0a9ac5cb5e3c5a7f0c231432a0f7b690a03d8c8b.tar.gz
u-boot-0a9ac5cb5e3c5a7f0c231432a0f7b690a03d8c8b.tar.xz
u-boot-0a9ac5cb5e3c5a7f0c231432a0f7b690a03d8c8b.zip
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 <hs@denx.de> [ Reedition by Lukasz Majewski <l.majewski@samsung.com> to apply to v2014.04 release ]
Diffstat (limited to 'common')
-rw-r--r--common/cmd_dfu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c
index ec90998176..857148f8af 100644
--- a/common/cmd_dfu.c
+++ b/common/cmd_dfu.c
@@ -9,6 +9,7 @@
*/
#include <common.h>
+#include <watchdog.h>
#include <dfu.h>
#include <g_dnl.h>
#include <usb.h>
@@ -64,6 +65,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: