]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/gadget/f_mass_storage.c
usb: f_mass_storage: sleep_thread: retrigger watchdog
[karo-tx-uboot.git] / drivers / usb / gadget / f_mass_storage.c
index abe9391d3d66bf9f2b2e3f36757c5c8e3c95a215..f30b4f812e6d4b8495e8b08fc0c59bb84e9ce851 100644 (file)
 #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;