From: Claudiu Beznea <claudiu.beznea@kernel.org>
To: Biju Das <biju.das.jz@bp.renesas.com>,
"geert+renesas@glider.be" <geert+renesas@glider.be>,
"sboyd@kernel.org" <sboyd@kernel.org>,
"bmasney+clk@redhat.com" <bmasney+clk@redhat.com>,
"jbrunet+clk@baylibre.com" <jbrunet+clk@baylibre.com>
Cc: "Claudiu.Beznea" <claudiu.beznea@tuxon.dev>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing MSTOPs and critical resets for s2idle
Date: Mon, 19 Oct 2026 16:00:09 +0300 [thread overview]
Message-ID: <fa2e9997-6124-42c0-959c-ec920ee9cbeb@kernel.org> (raw)
In-Reply-To: <TY3PR01MB1134614C56D70F75D2C3214D986982@TY3PR01MB11346.jpnprd01.prod.outlook.com>
Hi, Biju,
On 10/19/26 15:36, Biju Das wrote:
> Hi Claudiu,
>
>> -----Original Message-----
>> From: Claudiu Beznea <claudiu.beznea@kernel.org>
>> Sent: 19 October 2026 13:25
>> Subject: [PATCH] clk: renesas: rzg2l-cpg: Skip re-initializing MSTOPs and critical resets for s2idle
>>
>> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>>
>> 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.
>>
>> Fixes: 5cd33db56956 ("clk: renesas: rzg2l: Add support for MSTOP in clock enable/disable API")
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>> ---
>> drivers/clk/renesas/rzg2l-cpg.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/clk/renesas/rzg2l-cpg.c b/drivers/clk/renesas/rzg2l-cpg.c index
>> f6293c968bcf..3d2281456036 100644
>> --- a/drivers/clk/renesas/rzg2l-cpg.c
>> +++ b/drivers/clk/renesas/rzg2l-cpg.c
>> @@ -31,6 +31,7 @@
>> #include <linux/reset-controller.h>
>> #include <linux/slab.h>
>> #include <linux/string_choices.h>
>> +#include <linux/suspend.h>
>> #include <linux/units.h>
>>
>> #include <dt-bindings/clock/renesas-cpg-mssr.h>
>> @@ -2697,6 +2698,9 @@ static int rzg2l_cpg_resume(struct device *dev)
>> struct rzg2l_cpg_priv *priv = dev_get_drvdata(dev);
>> int ret;
>>
>> + if (!pm_suspend_via_firmware())
>> + return 0;
>> +
>
> Please move this after deassert, otherwise it will lead to SCIF not getting console
> prompt during s2idle as reset is asserted during suspend?
How did you reproduce this?
Who asserts the SCIF reset in s2idle?
Is the s2idle done with the help of firmware in your case?
If you have issues on any of your platforms could you check after applying this
patch:
https://lore.kernel.org/all/20261005111157.17256-1-ovidiu.panait.rb@renesas.com/ ?
Thank you,
Claudiu
next prev parent reply other threads:[~2026-10-19 13:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 12:25 Claudiu Beznea
2026-10-19 12:36 ` Biju Das
2026-10-19 13:00 ` Claudiu Beznea [this message]
2026-10-19 13:07 ` Biju Das
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa2e9997-6124-42c0-959c-ec920ee9cbeb@kernel.org \
--to=claudiu.beznea@kernel.org \
--cc=biju.das.jz@bp.renesas.com \
--cc=bmasney+clk@redhat.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=geert+renesas@glider.be \
--cc=jbrunet+clk@baylibre.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®