Hi,
On Mon, Jun 06, 2016 at 05:22:44PM +0530, Laxman Dewangan wrote:
+ /* Stop watchodog */
+ ret = regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL2,
+ MAX77620_WDTEN, 0);
+ if (ret < 0) {
+ dev_err(wdt->dev, "Failed to reset WDTEN: %d\n", ret);
+ return ret;
+ }
Alternatively, you could set WDOG_HW_RUNNING to tell the watchdog core
that the watchdog is already running. The watchdog core would then ping
the watchdog until the watchdog device is opened.
That would also require to tell the watchdog core about the current (or default)
timeout, which doesn't seem to be set anywhere. That means it won't be set at all
unless user space updates it explicitly. This is quite unusual. Is it on purpose
or an oversight ? If it is on purpose, please explain.