Re: [PATCH v2] watchdog: mtk_wdt: Use NOIRQ_SYSTEM_SLEEP_PM_OPS()
From: Guenter Roeck
Date: Thu Jul 31 2025 - 09:39:50 EST
On Thu, Jul 31, 2025 at 11:31:36AM +0800, 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: Jiazi Li <jqqlijiazi@xxxxxxxxx>
> Signed-off-by: peixuan.qiu <peixuan.qiu@xxxxxxxxxxxxx>
> Signed-off-by: Ao Sun <aosun718@xxxxxxxxx>
Did this patch really follow this Sign-off chain ? That seems unlikely.
Guenter
> ---
> 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
>