[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250731033136.3914-1-aosun718@gmail.com>
Date: Thu, 31 Jul 2025 11:31:36 +0800
From: Ao Sun <aosun718@...il.com>
To: linux@...ck-us.net,
matthias.bgg@...il.com,
p.zabel@...gutronix.de,
wim@...ux-watchdog.org
Cc: linux-kernel@...r.kernel.org,
geng.sun@...nssion.com,
Ao Sun <aosun718@...il.com>,
Jiazi Li <jqqlijiazi@...il.com>,
"peixuan . qiu" <peixuan.qiu@...nssion.com>
Subject: [PATCH v2] watchdog: mtk_wdt: Use NOIRQ_SYSTEM_SLEEP_PM_OPS()
During the device resume process, an interrupt storm occurs after
interrupts are enabled, preventing the watchdog device from being
resumed and functioning.
To ensure that the watchdog is resumed and executed before interrupts
are enabled, Use NOIRQ_SYSTEM_SLEEP_PM_OPS().
Signed-off-by: Jiazi Li <jqqlijiazi@...il.com>
Signed-off-by: peixuan.qiu <peixuan.qiu@...nssion.com>
Signed-off-by: Ao Sun <aosun718@...il.com>
---
Changes in v2:
- remove extra space, and align multiple lines.
---
drivers/watchdog/mtk_wdt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
index d6a6393f609d..7dc53409cf99 100644
--- a/drivers/watchdog/mtk_wdt.c
+++ b/drivers/watchdog/mtk_wdt.c
@@ -327,8 +327,8 @@ static const struct of_device_id mtk_wdt_dt_ids[] = {
MODULE_DEVICE_TABLE(of, mtk_wdt_dt_ids);
static const struct dev_pm_ops mtk_wdt_pm_ops = {
- SET_SYSTEM_SLEEP_PM_OPS(mtk_wdt_suspend,
- mtk_wdt_resume)
+ SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(mtk_wdt_suspend,
+ mtk_wdt_resume)
};
static struct platform_driver mtk_wdt_driver = {
--
2.34.1
Powered by blists - more mailing lists