watchdog: mtk_wdt: Use NOIRQ_SYSTEM_SLEEP_PM_OPS()
Subsystems (2)
PATCH 1/1 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 awakened and functioning.
To ensure that the watchdog is executed before interrupts are enabled, Use NOIRQ_SYSTEM_SLEEP_PM_OPS().
--- drivers/watchdog/mtk_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/mtk_wdt.c +1 -1
@@ -327,7 +327,7 @@ 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, +SET_NOIRQ_SYSTEM_SLEEP_PM_OPS (mtk_wdt_suspend, mtk_wdt_resume) };
Signature · 1 line
2.34.1
Guenter Roeck
maintainerQuoted 17 lines · Ao Sun
During the device resume process, an interrupt storm occurs after interrupts are enabled, preventing the watchdog device from being awakened and functioning.
To ensure that the watchdog is executed before interrupts are enabled, Use
NOIRQ_SYSTEM_SLEEP_PM_OPS().Signed-off-by Ao Sun <[email protected]>--- drivers/watchdog/mtk_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/watchdog/mtk_wdt.c +0
-0
drivers/watchdog/mtk_wdt.c static const struct of_device_id mtk_wdt_dt_ids[] = { · line 331
Quoted 6 lines
drivers/watchdog/mtk_wdt.c +1
-1@@ -327,7 +327,7 @@ 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, +SET_NOIRQ_SYSTEM_SLEEP_PM_OPS (mtk_wdt_suspend, mtk_wdt_resume)
Extra space added at beginning of line, and bad multi-line alignment.
Guenter
PATCH v2 1/1 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().
---
Changes in v2:
- remove extra space, and align multiple lines.
--- drivers/watchdog/mtk_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/watchdog/mtk_wdt.c +2 -2
@@ -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 = {
Signature · 1 line
2.34.1
Guenter Roeck
maintainerQuoted 10 lines · Ao Sun
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 <[email protected]>Signed-off-by peixuan.qiu <[email protected]>Signed-off-by Ao Sun <[email protected]>
Did this patch really follow this Sign-off chain ? That seems unlikely.
Guenter
Quoted 25 lines
---
Changes in v2:
- remove extra space, and align multiple lines.--- drivers/watchdog/mtk_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/watchdog/mtk_wdt.c +2
-2@@ -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 = {Signature · 1 line
2.34.1
PATCH v3 1/1 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().
---
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(-)
drivers/watchdog/mtk_wdt.c +2 -2
@@ -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 = {
Signature · 1 line
2.34.1
Quoted 8 lines · Ao Sun
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 <[email protected]>
Quoted 24 lines
---
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(-)drivers/watchdog/mtk_wdt.c +2
-2@@ -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 = {
PATCH RESEND 1/1 watchdog: mtk_wdt: Use DEFINE_NOIRQ_DEV_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 DEFINE_NOIRQ_DEV_PM_OPS()
---
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(-)
drivers/watchdog/mtk_wdt.c +2 -2
@@ -507,8 +507,8 @@ static const struct of_device_id mtk_wdt_dt_ids[] = { };MODULE_DEVICE_TABLE (of, mtk_wdt_dt_ids); -static DEFINE_SIMPLE_DEV_PM_OPS(mtk_wdt_pm_ops, - mtk_wdt_suspend, mtk_wdt_resume); +static DEFINE_NOIRQ_DEV_PM_OPS(mtk_wdt_pm_ops, + mtk_wdt_suspend, mtk_wdt_resume);static struct platform_driver mtk_wdt_driver = { .probe = mtk_wdt_probe,
Signature · 1 line
2.34.1