diff options
| author | Alexander Sverdlin <[email protected]> | 2024-11-07 20:38:28 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2024-11-17 10:24:22 +0000 |
| commit | 4962ee045d8f06638714d801ab0fb72f89c16690 (patch) | |
| tree | 342b6ea77cc62c7efb4371b6eec8b520e0321722 /drivers/net/netkit.c | |
| parent | watchdog: s3c2410_wdt: add support for exynosautov920 SoC (diff) | |
| download | kernel-4962ee045d8f06638714d801ab0fb72f89c16690.tar.gz kernel-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: [email protected]
Fixes: 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support")
Signed-off-by: Alexander Sverdlin <[email protected]>
Reviewed-by: Vignesh Raghavendra <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
