]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
watchdog: cadence_wdt: Fix issue with timeout-sec dt property
authorNava kishore Manne <nava.manne@xilinx.com>
Wed, 19 Jul 2017 06:48:08 +0000 (12:18 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 19 Jul 2017 07:15:31 +0000 (09:15 +0200)
commit33ca085020368a5d998f360f0ae73a17b06816c7
treebf3ccb612f2f6c6f7cce7f57a8f15856f9c3537f
parent0c99a1e78778ff252e44ab7a3e7cc77f2628582d
watchdog: cadence_wdt: Fix issue with timeout-sec dt property

Unable to change timeout value via DT because watchdog_init_timeout()
code which reads from DT is not called at all. Because
watchdog_init_timeout() gives the priority for the module parameter value.
If the value is not valid then only it will read from the Device tree.
But currenly in the driver module parameter default value is fixed to 10s
means watchdog_init_timeout() always use the module parameter timeout
value. It will always ignore the timeout-sec dt property value.

This patch fix this issue.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/watchdog/cadence_wdt.c