From: Michal Simek Date: Mon, 12 Dec 2016 08:46:09 +0000 (+0100) Subject: lib: Add WATCHDOG_RESET to wait_bit.h X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3cd42180a8f691c68d88b9ef428054348c2f0432;p=u-boot.git lib: Add WATCHDOG_RESET to wait_bit.h wait_for_bit() is missing reset watchdog in case watchdog is configured. Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- diff --git a/include/wait_bit.h b/include/wait_bit.h index 066e30c118..06ad43a122 100644 --- a/include/wait_bit.h +++ b/include/wait_bit.h @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -59,6 +60,7 @@ static inline int wait_for_bit(const char *prefix, const u32 *reg, } udelay(1); + WATCHDOG_RESET(); } debug("%s: Timeout (reg=%p mask=%08x wait_set=%i)\n", prefix, reg, mask,