soc: renesas: rcar-rst: keep RESBAR2S in default state
PATCH 1/1 soc: renesas: rcar-rst: keep RESBAR2S in default state
Unlike Gen2, Gen4 has bit 15 of WDTRSTCR register also used. Keep it in the default state for the V3U firmware workaround.
--- drivers/soc/renesas/rcar-rst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/renesas/rcar-rst.c +2 -1
@@ -12,6 +12,7 @@#define WDTRSTCR_RESET 0xA55A0002#define WDTRSTCR 0x0054 +#define GEN4_WDTRSTCR_RESET 0xA55A8002#define GEN4_WDTRSTCR 0x0010#define CR7BAR 0x0070
@@ -30,7 +31,7 @@ static int rcar_rst_enable_wdt_reset(void __iomem *base)static int rcar_rst_v3u_enable_wdt_reset (void __iomem *base) { -iowrite32 (WDTRSTCR_RESET , base +GEN4_WDTRSTCR ); +iowrite32 (GEN4_WDTRSTCR_RESET , base +GEN4_WDTRSTCR );return 0 ; }
Signature · 1 line
2.47.2
Hi Wolfram,
Quoted 4 lines · Wolfram Sang
Unlike Gen2, Gen4 has bit 15 of WDTRSTCR register also used. Keep it in the default state for the V3U firmware workaround.
Signed-off-by Wolfram Sang <[email protected]>
BTW, did you experience any ill effects from accidentally clearing this bit? IIRC Falcon (and Spider) still rebooted fine before. Perhaps you need it to make subsequent reboots work?
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert,
Quoted 3 lines
BTW, did you experience any ill effects from accidentally clearing this bit? IIRC Falcon (and Spider) still rebooted fine before. Perhaps you need it to make subsequent reboots work?
I didn't experience problems, found it in the datasheets while working with S4 and watchdogs. I'd think a likely issue is that MD-switch-changes might not be detected after a soft reboot?
Happy hacking,
Wolfram
Geert Uytterhoeven
Tested-byHi Wolfram,
Quoted 7 lines · Wolfram Sang
Quoted 3 lines
BTW, did you experience any ill effects from accidentally clearing this bit? IIRC Falcon (and Spider) still rebooted fine before. Perhaps you need it to make subsequent reboots work?
I didn't experience problems, found it in the datasheets while working with S4 and watchdogs. I'd think a likely issue is that MD-switch-changes might not be detected after a soft reboot?
Thanks, I also see no ill effects on the remote Gray Hawk Single that has old firmware and thus relies on commit accde57f464304cf ("[TEST] soc: renesas: rcar-rst: Enable WDT reset on early R-Car V4M") in renesas-drivers.
i.e. will queue in renesas-devel for v6.19.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds