watchdog: rti-wdt: attach to running watchdog during probe
authorTero Kristo <t-kristo@ti.com>
Fri, 17 Jul 2020 13:29:57 +0000 (16:29 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:43:02 +0000 (18:43 +0200)
commit5527483f8f7c8edadb5ad4fe8fcb569f565369ea
tree92a69cef1028279cf7d6d87bc124e281cf3e0894
parentcef9572e9af373cefd1adc9e771e89670da5da3c
watchdog: rti-wdt: attach to running watchdog during probe

If the RTI watchdog is running already during probe, the driver must
configure itself to match the HW. Window size and timeout is probed from
hardware, and the last keepalive ping is adjusted to match it also.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200717132958.14304-4-t-kristo@ti.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/rti_wdt.c