]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: portwell-ec: Add suspend/resume support for watchdog
authorYen-Chi Huang <jesse.huang@portwell.com.tw>
Thu, 28 Aug 2025 05:31:17 +0000 (13:31 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 28 Aug 2025 11:52:54 +0000 (14:52 +0300)
commit54cf44517550d53960d2fc5f85cf55d668c8889d
tree9ee78d4537427911578a12ce6702f39d984625d2
parent30359c239ba8394c8e774151d26914db18dc4976
platform/x86: portwell-ec: Add suspend/resume support for watchdog

Portwell EC does not disable the watchdog during suspend. To avoid unwanted
resets, this patch adds suspend and resume callbacks (pwec_suspend() and
pwec_resume()) to the driver.

The watchdog is stopped in pwec_suspend() and restarted in pwec_resume() if
it was active before suspend.

Signed-off-by: Yen-Chi Huang <jesse.huang@portwell.com.tw>
Link: https://lore.kernel.org/r/c9cfe602-c279-4aa4-9932-76f47f26556c@portwell.com.tw
[ij: removed extra "3"]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/portwell-ec.c