Skip to content
Snippets Groups Projects
Commit 69be2c46 authored by Pali Rohár's avatar Pali Rohár
Browse files

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: 0a095fc5

 ("watchdog: Add MAX6370 watchdog timer driver")
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
parent 1edb8b6d
No related merge requests found
......@@ -73,7 +73,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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment