diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-04-18 17:18:39 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-21 10:26:52 +0200 |
commit | 85d0aec0fda21da28ac886b2bf973f0e1c1b8d41 (patch) | |
tree | be7613df087f78bc5d4e124a26a3cdd2898b22bf /cmd | |
parent | d73d9fb7e2384b55a6c1866a5d914a621cf8563a (diff) | |
download | u-boot-85d0aec0fda21da28ac886b2bf973f0e1c1b8d41.tar.gz u-boot-85d0aec0fda21da28ac886b2bf973f0e1c1b8d41.tar.bz2 u-boot-85d0aec0fda21da28ac886b2bf973f0e1c1b8d41.zip |
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 <patrick.delaunay@st.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/usb_mass_storage.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <part.h> #include <usb.h> #include <usb_mass_storage.h> +#include <watchdog.h> 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: |