]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
zlib: Add further watchdog reset calls
authorStefan Roese <sr@denx.de>
Wed, 8 Sep 2010 13:35:31 +0000 (15:35 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 12 Oct 2010 19:16:01 +0000 (21:16 +0200)
Patch 253cb831 [zlib: add watchdog reset call] added already a few
watchdog reset calls to the new zlib U-Boot port. But on some boards
this is not enough. Additional calls are needed on boards with
short watchdog timeouts.

This was detected and tested on the lwmon5 board with a very short
watchdog timeout. Without this patch, the board resets during Linux
kernel decompression. With it, the decompression succeeds.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
lib/zlib.c

index 2b31dbadb86045e72161ddfc9316b0c9f8a9705b..e19484aaa07fbc7a05900f5159c58a795b251343 100644 (file)
@@ -1599,6 +1599,7 @@ int flush;
             strm->adler = state->check = adler32(0L, Z_NULL, 0);
             state->mode = TYPE;
         case TYPE:
+           WATCHDOG_RESET();
             if (flush == Z_BLOCK) goto inf_leave;
         case TYPEDO:
             if (state->last) {