[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210512084724.14634-8-shruthi.sanil@intel.com>
Date: Wed, 12 May 2021 14:17:21 +0530
From: shruthi.sanil@...el.com
To: wim@...ux-watchdog.org, linux@...ck-us.net,
linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: andriy.shevchenko@...ux.intel.com, kris.pan@...ux.intel.com,
mgross@...ux.intel.com, srikanth.thokala@...el.com,
lakshmi.bai.raja.subramanian@...el.com,
mallikarjunappa.sangannavar@...el.com, shruthi.sanil@...el.com
Subject: [PATCH 07/10] watchdog: keembay: Update the check in keembay_wdt_resume()
From: Shruthi Sanil <shruthi.sanil@...el.com>
Corrected the typo in the function keembay_wdt_resume, we need to
enable the WDT if it is disabled/not active.
Fixes: fa0f8d51e90d ("watchdog: Add watchdog driver for Intel Keembay Soc")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Tested-by: Kris Pan <kris.pan@...el.com>
Signed-off-by: Shruthi Sanil <shruthi.sanil@...el.com>
---
drivers/watchdog/keembay_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/keembay_wdt.c b/drivers/watchdog/keembay_wdt.c
index dd192b8dff55..10896415f8c7 100644
--- a/drivers/watchdog/keembay_wdt.c
+++ b/drivers/watchdog/keembay_wdt.c
@@ -260,7 +260,7 @@ static int __maybe_unused keembay_wdt_resume(struct device *dev)
{
struct keembay_wdt *wdt = dev_get_drvdata(dev);
- if (watchdog_active(&wdt->wdd))
+ if (!watchdog_active(&wdt->wdd))
return keembay_wdt_start(&wdt->wdd);
return 0;
--
2.17.1
Powered by blists - more mailing lists