mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
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 <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
51443c9a49
commit
c5f5ee3732
@ -72,7 +72,7 @@ static int max6370_wdt_reset(struct udevice *dev)
|
|||||||
|
|
||||||
if (dm_gpio_is_valid(&wdt->gpio_wdi)) {
|
if (dm_gpio_is_valid(&wdt->gpio_wdi)) {
|
||||||
dm_gpio_set_value(&wdt->gpio_wdi, 1);
|
dm_gpio_set_value(&wdt->gpio_wdi, 1);
|
||||||
udelay(1);
|
__udelay(1);
|
||||||
dm_gpio_set_value(&wdt->gpio_wdi, 0);
|
dm_gpio_set_value(&wdt->gpio_wdi, 0);
|
||||||
} else {
|
} else {
|
||||||
val = readb(wdt->reg);
|
val = readb(wdt->reg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user