]> 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)
commitfd336aa6223734fa23a8c161496eb7ee12a3bfe2
tree92a69cef1028279cf7d6d87bc124e281cf3e0894
parent9b47f3f0c699a30a2b4ac91672998fe9fc7168e5
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