[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <39707662-e53d-4f95-9e3b-6517142efc6c@gmail.com>
Date: Mon, 4 Aug 2025 12:31:00 +0200
From: Matthias Brugger <matthias.bgg@...il.com>
To: Ao Sun <aosun718@...il.com>, linux@...ck-us.net, p.zabel@...gutronix.de,
wim@...ux-watchdog.org
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] watchdog: mtk_wdt: Use NOIRQ_SYSTEM_SLEEP_PM_OPS()
On 4/8/25 08:11, Ao Sun wrote:
> 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: Ao Sun <aosun718@...il.com>
Reviewed-by: Matthias Brugger <matthias.bgg@...il.com>
> ---
> Changes in v3:
> - correct the Signed-off-by.
> 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 = {
Powered by blists - more mailing lists