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

From: claudiu beznea

Date: Mon Nov 23 2026 - 05:01:11 EST


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.


Suspend to idle. Critical clk is on, so there is no way critical clk ref count is 0
and corresponding MSTOP is always in stand by state.

Didn't we already had this discussion here: https://lore.kernel.org/all/TY3PR01MB113460224F0225E29A7C5097C86982@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ ?

Thank you,
Claudiu