summaryrefslogtreecommitdiff
path: root/kernel/usermode_driver.c
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@siemens.com>2024-11-07 21:38:28 +0100
committerWim Van Sebroeck <wim@linux-watchdog.org>2024-11-17 11:24:22 +0100
commit4962ee045d8f06638714d801ab0fb72f89c16690 (patch)
tree342b6ea77cc62c7efb4371b6eec8b520e0321722 /kernel/usermode_driver.c
parenta5cb13980e00e9c4fbc382d68eda250ab6a14d7c (diff)
downloadlinux-4962ee045d8f06638714d801ab0fb72f89c16690.tar.gz
linux-4962ee045d8f06638714d801ab0fb72f89c16690.tar.bz2
linux-4962ee045d8f06638714d801ab0fb72f89c16690.zip
watchdog: rti: of: honor timeout-sec property
Currently "timeout-sec" Device Tree property is being silently ignored: even though watchdog_init_timeout() is being used, the driver always passes "heartbeat" == DEFAULT_HEARTBEAT == 60 as argument. Fix this by setting struct watchdog_device::timeout to DEFAULT_HEARTBEAT and passing real module parameter value to watchdog_init_timeout() (which may now be 0 if not specified). Cc: stable@vger.kernel.org Fixes: 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support") Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20241107203830.1068456-1-alexander.sverdlin@siemens.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'kernel/usermode_driver.c')
0 files changed, 0 insertions, 0 deletions