]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: ftwdt010_wdt: implement _restart() function
authorSergei Antonov <saproj@gmail.com>
Mon, 29 Aug 2022 09:04:36 +0000 (12:04 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 2 Oct 2022 10:55:35 +0000 (12:55 +0200)
commit54c35ddf202ecb3aa9eb5614e75ecaee4ccd44dc
tree3e203de27e53d6f55d96ab179fbafde9ba502d9a
parent1b1e42e0e8dd47c038472afd19aa28b649941ca7
watchdog: ftwdt010_wdt: implement _restart() function

Implement ftwdt010_wdt_restart(). It enables watchdog with timeout = 0
and disabled IRQ. Since it needs code similar to ftwdt010_wdt_start(),
add a new function ftwdt010_enable() and move common code there.

Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220829090436.452742-1-saproj@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/ftwdt010_wdt.c