From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Fri, 19 Apr 2019 08:26:46 +0200 Subject: [U-Boot] [PATCH] usb: reload watchdog during ums command In-Reply-To: <1555600720-30282-1-git-send-email-patrick.delaunay@st.com> References: <1555600720-30282-1-git-send-email-patrick.delaunay@st.com> Message-ID: <20190419082646.42a96307@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Patrick, > 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 > --- > > cmd/usb_mass_storage.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c > index 753ae4f..570cf3a 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: Acked-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: