]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5ac4e531e074c55ea724e1db14c0fb37d2ff88f
tree92a69cef1028279cf7d6d87bc124e281cf3e0894
parent95a22f68e8e0f22ef621f977f8a9015d884fa41e
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