Commit 7a342785 authored by Heiko Schocher's avatar Heiko Schocher Committed by Marek Vasut
Browse files

usb, musb-new: add wdt trigger


Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
parent c5398cc9
#include <common.h>
#include <watchdog.h>
#include <asm/errno.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
......@@ -164,6 +165,7 @@ static struct musb *gadget;
int usb_gadget_handle_interrupts(void)
{
WATCHDOG_RESET();
if (!gadget || !gadget->isr)
return -EINVAL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment