Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watchdog: rti: of: honor timeout-sec property
commit 4962ee0 upstream. 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: 2d63908 ("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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information