From: Pali Rohár Date: Tue, 27 Sep 2022 10:19:19 +0000 (+0200) Subject: watchdog: max6370: use __udelay() to avoid recursion X-Git-Tag: v2025.01-rc5-pxa1908~1269^2~1 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=c5f5ee373267d8a73b44ffa0de0d0a1a08115d8f;p=u-boot.git watchdog: max6370: use __udelay() to avoid recursion The udelay() function in lib/time.c contains a WATCHDOG_RESET() call. So use __udelay() in max6370_wdt.c to prevent recursion. Fixes: 0a095fc53b15 ("watchdog: Add MAX6370 watchdog timer driver") Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese --- diff --git a/drivers/watchdog/max6370_wdt.c b/drivers/watchdog/max6370_wdt.c index e59cbb21ff..584a4ed468 100644 --- a/drivers/watchdog/max6370_wdt.c +++ b/drivers/watchdog/max6370_wdt.c @@ -72,7 +72,7 @@ static int max6370_wdt_reset(struct udevice *dev) if (dm_gpio_is_valid(&wdt->gpio_wdi)) { dm_gpio_set_value(&wdt->gpio_wdi, 1); - udelay(1); + __udelay(1); dm_gpio_set_value(&wdt->gpio_wdi, 0); } else { val = readb(wdt->reg);