usb: f_mass_storage: sleep_thread: retrigger watchdog
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 18 Sep 2020 06:23:38 +0000 (08:23 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 18 Sep 2020 06:23:38 +0000 (08:23 +0200)
drivers/usb/gadget/f_mass_storage.c

index abe9391..f30b4f8 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;