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
2022-08-31 12:16:01 -04:00
2021-09-30 08:08:56 -04:00
2022-08-12 08:14:23 -04:00
2022-06-28 17:03:32 -04:00
2022-07-07 14:01:09 -04:00
2022-08-23 12:39:06 +02:00
2022-06-17 16:27:05 +08:00
2022-09-18 20:42:56 +02:00
2022-08-12 08:14:24 -04:00
2022-08-10 13:46:55 -04:00
2022-09-18 22:56:09 +02:00
2022-09-18 22:56:10 +02:00
2021-10-05 08:50:15 -04:00
2022-08-04 16:18:47 -04:00
2022-07-25 13:02:04 -04:00
2022-08-04 16:18:47 -04:00
2022-07-26 08:36:10 +02:00
2022-07-26 09:34:21 +02:00
2022-06-23 12:58:19 -04:00
2022-09-26 10:04:37 +02:00
2022-01-13 07:57:49 -05:00
2022-09-15 14:59:29 +02:00
2022-02-10 16:44:23 -05:00
2022-07-25 09:38:47 -04:00
2022-07-08 10:56:45 -04:00
2022-07-26 08:36:25 +02:00
2022-08-09 10:01:31 +02:00
2022-09-16 18:46:14 +02: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-08-26 14:59:21 -04:00
2022-09-06 13:54:50 +02:00
2022-08-09 08:58:27 +02:00
2022-08-10 13:38:30 -04:00
2022-08-04 13:59:59 -04:00
2022-08-20 22:45:00 -04:00
2022-09-18 20:42:56 +02:00
2021-10-05 08:50:15 -04:00
2022-02-08 11:00:03 -05:00
2022-07-26 08:27:15 +02:00
2022-08-02 23:50:02 +03:00
2022-07-21 10:14:04 +02:00
2022-04-09 21:06:31 +02:00
2022-09-19 17:45:51 +02:00
2022-07-06 14:30:51 -04:00
2022-07-08 09:05:47 -04:00
2022-09-02 13:25:01 +02:00
2021-10-31 08:46:44 -04:00
2022-09-06 13:00:58 +08:00
2022-06-06 18:01:21 -04:00
2021-09-30 09:08:16 -04:00
2022-09-18 12:41:57 +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
2022-08-12 08:14:23 -04:00
2022-06-08 09:24:04 -04:00
2021-10-01 21:08:18 -04:00
2022-09-27 12:25:40 +02:00
2022-08-04 13:59:59 -04:00
2022-06-23 12:58:18 -04:00
2022-07-26 11:29:01 +02:00