]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
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 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;