projects
/
karo-tx-uboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d7e3f0
)
usb: f_mass_storage: sleep_thread: retrigger watchdog
author
Lothar Waßmann
<LW@KARO-electronics.de>
Fri, 18 Sep 2020 06:23:38 +0000
(08:23 +0200)
committer
Lothar Waßmann
<LW@KARO-electronics.de>
Fri, 18 Sep 2020 06:23:38 +0000
(08:23 +0200)
drivers/usb/gadget/f_mass_storage.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_mass_storage.c
b/drivers/usb/gadget/f_mass_storage.c
index
abe9391
..
f30b4f8
100644
(file)
--- a/
drivers/usb/gadget/f_mass_storage.c
+++ b/
drivers/usb/gadget/f_mass_storage.c
@@
-244,6
+244,7
@@
#include <malloc.h>
#include <common.h>
#include <g_dnl.h>
+#include <watchdog.h>
#include <linux/err.h>
#include <linux/usb/ch9.h>
@@
-682,6
+683,8
@@
static int sleep_thread(struct fsg_common *common)
if (ctrlc())
return -EPIPE;
+ WATCHDOG_RESET();
+
/* Check cable connection */
if (!g_dnl_board_usb_cable_connected())
return -EIO;