]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
watchdog: tegra: revamp timeout calculation and usage
authorShreshtha SAHU <ssahu@nvidia.com>
Mon, 5 Jun 2017 08:18:29 +0000 (13:48 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 7 Jul 2017 23:29:49 +0000 (16:29 -0700)
commitc11b5748efb4f3cbf51bc4f25e5b59f3bddfffa8
tree5697f973d767553324c95b8545fe422b15f11f8c
parent3e47435c126c8c0e43effe1587db1aef5e4198d0
watchdog: tegra: revamp timeout calculation and usage

 - update calculation of timeout for TIMER_PTV,
 - update watchdog ping to first disable timer, update timeut value
   and then restart the timer.
 - init watchdog timeout using watchdog_init_timeout
 - program default trigger period in watchdog configuration regiter

Bug 200314562

Change-Id: Iec9e5a94c995653e5a3c653eccfa23a0877ae2e9
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: https://git-master/r/1515195
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
drivers/watchdog/tegra_wdt.c