From: Patrick Delaunay Date: Thu, 18 Apr 2019 15:18:39 +0000 (+0200) Subject: usb: reload watchdog during ums command X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=85d0aec0fda21da28ac886b2bf973f0e1c1b8d41;p=u-boot.git usb: reload watchdog during ums command Reload the watchdog in the mass storage command ums to avoid reboot during the usb waiting loop when the host doesn't send any request. Signed-off-by: Patrick Delaunay --- diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c index 753ae4f42a..570cf3aa50 100644 --- a/cmd/usb_mass_storage.c +++ b/cmd/usb_mass_storage.c @@ -14,6 +14,7 @@ #include #include #include +#include static int ums_read_sector(struct ums *ums_dev, ulong start, lbaint_t blkcnt, void *buf) @@ -226,6 +227,8 @@ static int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag, rc = CMD_RET_SUCCESS; goto cleanup_register; } + + WATCHDOG_RESET(); } cleanup_register: