All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] introduce watchdog_dev_suspend/resume
@ 2021-06-18 19:50 ` Grzegorz Jaszczyk
  0 siblings, 0 replies; 12+ messages in thread
From: Grzegorz Jaszczyk @ 2021-06-18 19:50 UTC (permalink / raw)
  To: wim, linux, shawnguo
  Cc: linux-watchdog, linux-arm-kernel, linux-kernel, grzegorz.jaszczyk

Hi All,

The following is a v2 version of the series [1] that fixes system hang which
occurs when the ping worker fires after wdog suspend and before wdog resume.
This happens because the ping worker can issue low-level ping while the wdog clk
was disabled by the suspend routine (accessing hw wdog registers while they are
not fed by the clk).

To overcome this issue two patches were introduced. Patch #1 introduces pm
notifier in the watchdog core which will call watchdog_dev_suspend/resume and
actually cancel ping worker during suspend and restore it back, if needed,
during resume.

Patch #2 introduces relevant changes to imx2_wdt driver and notifies wdog core
to stop ping worker on suspend.

[1] https://lkml.org/lkml/2021/6/15/542

Best regards,
Grzegorz

Grzegorz Jaszczyk (2):
  watchdog: introduce watchdog_dev_suspend/resume
  watchdog: imx2_wdg: notify wdog core to stop ping worker on suspend

 drivers/watchdog/imx2_wdt.c      |  1 +
 drivers/watchdog/watchdog_core.c | 37 +++++++++++++++++++++++++
 drivers/watchdog/watchdog_dev.c  | 47 ++++++++++++++++++++++++++++++++
 include/linux/watchdog.h         | 10 +++++++
 4 files changed, 95 insertions(+)

-- 
2.29.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-07-21  7:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 19:50 [PATCH v2 0/2] introduce watchdog_dev_suspend/resume Grzegorz Jaszczyk
2021-06-18 19:50 ` Grzegorz Jaszczyk
2021-06-18 19:50 ` [PATCH v2 1/2] watchdog: " Grzegorz Jaszczyk
2021-06-18 19:50   ` Grzegorz Jaszczyk
2021-06-28 14:04   ` Guenter Roeck
2021-06-28 14:04     ` Guenter Roeck
2021-06-18 19:50 ` [PATCH v2 2/2] watchdog: imx2_wdg: notify wdog core to stop ping worker on suspend Grzegorz Jaszczyk
2021-06-18 19:50   ` Grzegorz Jaszczyk
2021-06-28 14:02   ` Guenter Roeck
2021-06-28 14:02     ` Guenter Roeck
2021-07-21  7:51 ` [PATCH v2 0/2] introduce watchdog_dev_suspend/resume Grzegorz Jaszczyk
2021-07-21  7:51   ` Grzegorz Jaszczyk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.