Files
u-boot/drivers
Rasmus Villemoes 51443c9a49 watchdog: gpio_wdt: use __udelay() to avoid recursion
The udelay() function in lib/time.c contains a WATCHDOG_RESET()
call. The only reason this doesn't lead to a catastrophic infinite
recursion is due to the rate-limiting in wdt-uclass.c:

		if (time_after_eq(now, priv->next_reset)) {
			priv->next_reset = now + priv->reset_period;
			wdt_reset(dev);
		}

But this would fall apart if ->next_reset was updated after calling the
device's reset method.

This is needlessly fragile, and it's easy enough to avoid that
recursion in the first place by just using __udelay() directly.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Stefan Roese <sr@denx.de>
2022-09-27 12:25:40 +02:00
..
2022-04-25 09:25:00 +02:00
2021-10-05 08:50:15 -04:00
2022-08-04 16:18:47 -04:00
2022-08-04 16:18:47 -04:00
2022-01-13 07:57:49 -05:00
2022-09-02 13:25:01 +02:00
2022-01-13 07:57:49 -05:00
2022-09-07 13:44:55 +08:00
2022-08-26 15:00:05 -04:00
2022-09-02 13:25:01 +02:00
2022-09-03 16:59:05 +03:00
2022-05-03 21:39:22 +02:00
2022-09-26 01:49:36 +02:00
2021-10-01 21:08:18 -04:00