Files
u-boot-sunxi/common
Lokesh Vutla a4773c5559 xyz-modem: Fix timeout loop waiting with WATCHDOG
Commit 2c77c0d652 ("xyz-modem: Change getc timeout loop waiting")
fixes the loop delay when using a hw watchdog, assuming that watchdog
kicking is taken care of by getc(). But the xyzmodem driver tries to
do a getc only after confirming that a character is available like below:
	while (!tstc()) {
		till timeout;
	}
	if (tstc())
		*c = getc();

and getc() does a watchdog reset only if it fails to see a character.
In this case, getc() always sees a character and never does a
watchdog reset. So to make sure that watchdog doesn't get reset
while loading the file, do a watchdog reset just before starting the
image loading.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-01-15 15:28:51 -05:00
..
2019-01-14 17:42:32 -05:00
2018-09-10 20:20:34 -04:00
2018-12-03 10:44:10 -05:00
2019-01-01 14:12:18 +01:00
2016-02-06 12:00:59 +01:00
2016-05-02 18:37:09 -04:00
2018-12-06 23:26:30 -05:00
2018-12-14 17:59:10 +01:00
2018-06-05 20:19:08 -04:00
2017-08-16 08:30:24 -04:00