projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c402f
)
Trigger watchdog before calling usb_gadget_handle_interrupts
author
Vincent Prince
<
[email protected]
>
Mon, 23 Oct 2017 09:16:35 +0000
(11:16 +0200)
committer
Marek Vasut
<
[email protected]
>
Sun, 26 Nov 2017 01:22:36 +0000
(
02:22
+0100)
This prevents board resets when calling sdp command on boards which have a watchdog.
Signed-off-by: Vincent Prince <
[email protected]
>
Reviewed-by: Lukasz Majewski <
[email protected]
>
Reviewed-by: Stefan Agner <
[email protected]
>
drivers/usb/gadget/f_sdp.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_sdp.c
b/drivers/usb/gadget/f_sdp.c
index fd3da922a690ed1d80908a0e4fcd9af12012cc28..dd7b9cddb1974cc45a0ba3ec2460392205b28112 100644
(file)
--- 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();