]> 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)
commite95039159c8864e5315d560bd78ce669e61d583b
tree3e203de27e53d6f55d96ab179fbafde9ba502d9a
parentb7d0ce00fb85a0c39cec091a94ed40aeaf43abbf
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