diff options
author | Vincent Prince <vincent.prince.fr@gmail.com> | 2017-10-23 11:16:35 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2017-11-26 02:22:36 +0100 |
commit | 8171dac00dfcb4c67ad2e4aafaf28fe91d9c5368 (patch) | |
tree | e5ebde2a7be80e6e67f4e4fc5febe451e26f5ad8 /drivers/usb | |
parent | a8c402f45c758235916615757ac537db8e96fc31 (diff) | |
download | u-boot-8171dac00dfcb4c67ad2e4aafaf28fe91d9c5368.tar.gz |
Trigger watchdog before calling usb_gadget_handle_interrupts
This prevents board resets when calling sdp command on boards which have a watchdog.
Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/f_sdp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index fd3da922a6..dd7b9cddb1 100644 --- a/drivers/usb/gadget/f_sdp.c +++ b/drivers/usb/gadget/f_sdp.c @@ -32,6 +32,7 @@ #include <spl.h> #include <image.h> #include <imximage.h> +#include <watchdog.h> #define HID_REPORT_ID_MASK 0x000000ff @@ -602,6 +603,8 @@ int sdp_init(int controller_index) puts("\rCTRL+C - Operation aborted.\n"); return 1; } + + WATCHDOG_RESET(); usb_gadget_handle_interrupts(controller_index); } @@ -712,6 +715,7 @@ void sdp_handle(int controller_index) return; } + WATCHDOG_RESET(); usb_gadget_handle_interrupts(controller_index); sdp_handle_in_ep(); |