Skip to content

watchdog: dw_wdt: reset clean up and pm

Artem Shimko linux-watchdog lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5watchdog: dw_wdt: move reset control deassertion before register accessdrivers/watchdog/dw_wdt.c+2 -20 replies
2/5watchdog: dw_wdt: add error handling for reset control deassertiondrivers/watchdog/dw_wdt.c+4 -20 replies
3/5watchdog: dw_wdt: Use devm_reset_control_get_optional_shared_deasserteddrivers/watchdog/dw_wdt.c+4 -130 replies
4/5watchdog: dw_wdt: manage reset line during system suspend/resumedrivers/watchdog/dw_wdt.c+12 -00 replies
5/5watchdog: dw_wdt: clean up error paths in resume functiondrivers/watchdog/dw_wdt.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] watchdog: dw_wdt: reset clean up and pm

Hello maintainers and reviewers,

Patch 1 moves reset_control_deassert() before any register access to ensure the watchdog controller is properly taken out of reset before configuration, fixing a potential hardware access issue.

Patch 2 adds proper error handling for reset_control_deassert() to prevent probe from continuing when reset deassertion fails, improving diagnostics and reliability.

Patch 3 replaces manual reset control management with the devm_reset_control_get_optional_shared_deasserted() helper, eliminating explicit reset_control_assert() calls in error paths and remove.

Patch 4 adds reset line management during system suspend and resume, asserting the reset before clocks are disabled and deasserting after clocks are re-enabled to maintain consistent hardware state.

Patch 5 is a final cleanup of the resume function error handling.

Thank you!
--
Best regards,
Artem Shimko

Artem Shimko (5):
watchdog: dw_wdt: move reset control deassertion before register
access
watchdog: dw_wdt: add error handling for reset control deassertion
watchdog: dw_wdt: Use
devm_reset_control_get_optional_shared_deasserted
watchdog: dw_wdt: manage reset line during system suspend/resume
watchdog: dw_wdt: clean up error paths in resume function

 drivers/watchdog/dw_wdt.c | 37 +++++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 16 deletions(-)
Signature · 1 line
2.43.0