mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 23:41:50 +00:00
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>
This commit is contained in:
parent
d73d9fb7e2
commit
85d0aec0fd
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
||||||
#include <part.h>
|
#include <part.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
#include <usb_mass_storage.h>
|
#include <usb_mass_storage.h>
|
||||||
|
#include <watchdog.h>
|
||||||
|
|
||||||
static int ums_read_sector(struct ums *ums_dev,
|
static int ums_read_sector(struct ums *ums_dev,
|
||||||
ulong start, lbaint_t blkcnt, void *buf)
|
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;
|
rc = CMD_RET_SUCCESS;
|
||||||
goto cleanup_register;
|
goto cleanup_register;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WATCHDOG_RESET();
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup_register:
|
cleanup_register:
|
||||||
|
|
Loading…
Add table
Reference in a new issue