OSDN Git Service

watchdog: sama5d4: readout initial state
authorMathieu Othacehe <othacehe@gnu.org>
Sat, 19 Aug 2023 08:47:26 +0000 (10:47 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 19 Aug 2023 15:36:20 +0000 (17:36 +0200)
commit266da53c35fce128ce47d8aa93e316e0a94f2f60
treec3a4aebc300a97dcb98015e9be6627a008c84d29
parentcf38e7691c85f1b09973b22a0b89bf1e1228d2f9
watchdog: sama5d4: readout initial state

Readout the AT91_WDT_MR bit at probe so that it becomes possible to get the
pre-userspace handler working.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230819084726.11037-1-othacehe@gnu.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sama5d4_wdt.c