RE: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing MSTOPs and critical resets for s2idle

From: Biju Das

Date: Mon Nov 23 2026 - 05:07:54 EST


Hi Claudiu,

> -----Original Message-----
> From: claudiu beznea <claudiu.beznea@xxxxxxxxx>
> Sent: 23 November 2026 10:00
> Subject: Re: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing MSTOPs and critical resets for
> s2idle
>
> Hi, Biju,
>
> On 11/23/26 11:46, Biju Das wrote:
> > Hi Claudiu,
> >
> >> -----Original Message-----
> >> From: claudiu beznea <claudiu.beznea@xxxxxxxxx>
> >> Sent: 23 November 2026 08:07
> >> Subject: Re: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing
> >> MSTOPs and critical resets for s2idle
> >>
> >> Hi, Geert,
> >>
> >> Gentle ping.
> >>
> >> Thank you,
> >> Claudiu
> >>
> >> On 10/19/26 15:25, Claudiu Beznea wrote:
> >>> From: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>
> >>>
> >>> When the system suspends to s2idle, any of the IP blocks may be in
> >>> the wakeup path. For a device in the wakeup path, the generic PM
> >>> domain
> >>> (genpd) does not disable/enable its clocks across suspend/resume.
> >>> Re-initializing the MSTOP bits for such a device leads to
> >>> synchronous aborts when its registers are accessed for the first time after resume.
> >>>
> >>> In a suspend mode that is not controlled by firmware, power to the
> >>> SoC is not lost, so the MSTOP and critical reset state is retained
> >>> and does not need re-initialization in the first place. Skip it when
> >>> pm_suspend_via_firmware() reports such a mode.
> >
> >
> > Looks like a bug in clk driver. MSTOP is controlled by clk reference count.
> > If clk ref count is 0, then MSTOP turned off.
>
> Have you read the patch description? Here it is:
>
> When the system suspends to s2idle, any of the IP blocks may be in the wakeup path. For a device in
> the wakeup path, the generic PM domain (genpd) does not disable/enable its clocks across
> suspend/resume. Re-initializing the MSTOP bits for such a device leads to synchronous aborts when its
> registers are accessed for the first time after resume.

In suspend to idle, during suspend state which critical clk is turning MSTOP into standby state?

If suspend does not touch critical clk, then MSTOP will be normal state.

During resume, If MSTOP is in normal operation, will setting again to normal state will
Lead to abort? Am I missing anything here?

Cheers,
Biju