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)
commit5a9fbf8b807c0e35fc99bb65a9559ec9b0abde66
treea328fc0356729de0437ab6112630ad22a5315427
parentdc1f12b916005e1a1a908fbfcded356634a07038
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