]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: w83627hf_wdt: add bootstatus support
authorHenning Schild <henning.schild@siemens.com>
Wed, 24 Aug 2022 15:24:48 +0000 (17:24 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 2 Oct 2022 10:55:34 +0000 (12:55 +0200)
commitb7d0ce00fb85a0c39cec091a94ed40aeaf43abbf
treea328fc0356729de0437ab6112630ad22a5315427
parent40cc06f0f76fd9d0c943fdc5f94f53b44a8f9ba2
watchdog: w83627hf_wdt: add bootstatus support

The status bit in the status and control register can tell us whether
the last reboot was caused by the watchdog. Make sure to take that into
the bootstatus before clearing it.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220824152448.7736-1-henning.schild@siemens.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/w83627hf_wdt.c