]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: renesas: r9a06g032: Enable watchdog reset sources
authorHerve Codina (Schneider Electric) <herve.codina@bootlin.com>
Tue, 24 Mar 2026 12:04:30 +0000 (13:04 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 25 Mar 2026 17:29:00 +0000 (18:29 +0100)
commit2fcaaf15e4ab86e7a81e3bd3eaeb8aa2f730ca29
treee1fed5e728431d508bdb0142b6f8e41825ed58f8
parent0e590f4d99e2bd47cfd9e4e49228473548972285
clk: renesas: r9a06g032: Enable watchdog reset sources

The watchdog timeout is signaled using an interrupt and, on this
interrupt, a software initiated reset is performed.

This software initiated reset performs, in the end, a hardware system
reset using SWRST_REQ of RSTCTRL register.

The watchdog itself is able to control directly the hardware system
reset without any operation done by the interrupt handler. This feature
allows the watchdog to not depend on the software to reset the system
when a watchdog timeout occurs.

Indeed, when the watchdog timeout occurs, the watchdog requests a system
reset using its own hardware dedicated line but this reset source is
disabled at the reset controller level.

To benefit of this feature and be robust against software issues, enable
watchdogs reset sources.

Suggested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Herve Codina (Schneider Electric) <herve.codina@bootlin.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260324120435.243641-2-herve.codina@bootlin.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a06g032-clocks.c