[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210107195730.1660449-1-tomas.winkler@intel.com>
Date: Thu, 7 Jan 2021 21:57:30 +0200
From: Tomas Winkler <tomas.winkler@...el.com>
To: Wim Van Sebroeck <wim@...ana.be>,
Guenter Roeck <linux@...ck-us.net>
Cc: linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org,
Alexander Usyskin <alexander.usyskin@...el.com>,
stable@...r.kernel.org, Tomas Winkler <tomas.winkler@...el.com>
Subject: [watchdog] watchdog: mei_wdt: request stop on unregister
From: Alexander Usyskin <alexander.usyskin@...el.com>
Send the stop command to the firmware on watchdog unregister
to eleminate false event on suspend.
Cc: <stable@...r.kernel.org>
Signed-off-by: Alexander Usyskin <alexander.usyskin@...el.com>
Signed-off-by: Tomas Winkler <tomas.winkler@...el.com>
---
drivers/watchdog/mei_wdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/mei_wdt.c b/drivers/watchdog/mei_wdt.c
index 5391bf3e6b11..c5967d8b4256 100644
--- a/drivers/watchdog/mei_wdt.c
+++ b/drivers/watchdog/mei_wdt.c
@@ -382,6 +382,7 @@ static int mei_wdt_register(struct mei_wdt *wdt)
watchdog_set_drvdata(&wdt->wdd, wdt);
watchdog_stop_on_reboot(&wdt->wdd);
+ watchdog_stop_on_unregister(&wdt->wdd);
ret = watchdog_register_device(&wdt->wdd);
if (ret)
--
2.26.2
Powered by blists - more mailing lists