[PATCH v6 3/5] watchdog: da9063: set HW_RUNNING indication during wdt_start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Inform the watchdog framework that the watchog is running. Each driver
have to set this bit because the watchdog core framework clears this bit
only.

Fixes: 5e9c16e37608 ("watchdog: Add DA9063 PMIC watchdog driver.")
Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
---
 drivers/watchdog/da9063_wdt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/watchdog/da9063_wdt.c b/drivers/watchdog/da9063_wdt.c
index 0669e5cfa835..6840e505bf0a 100644
--- a/drivers/watchdog/da9063_wdt.c
+++ b/drivers/watchdog/da9063_wdt.c
@@ -86,6 +86,8 @@ static int da9063_wdt_start(struct watchdog_device *wdd)
 		dev_err(da9063->dev, "Watchdog failed to start (err = %d)\n",
 			ret);
 
+	set_bit(WDOG_HW_RUNNING, &wdd->status);
+
 	return ret;
 }
 
-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux