From: Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Olivia Mackall <olivia@selenic.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: 回复: [PATCH v7 2/2] hwrng: starfive: rework clk/reset teardown order for JHB100
Date: Fri, 4 Sep 2026 09:35:18 +0000 [thread overview]
Message-ID: <NT0PR01MB12773F5E2E17527283D2B0E482B52@NT0PR01MB1277.CHNPR01.prod.partner.outlook.cn> (raw)
In-Reply-To: <apqOSl1m-5ctry_T@gondor.apana.org.au>
> -----邮件原件-----
> 发件人: Herbert Xu <herbert@gondor.apana.org.au>
> 发送时间: 2026年9月4日 17:24
> 收件人: Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
> 抄送: Olivia Mackall <olivia@selenic.com>; Rob Herring <robh@kernel.org>;
> Krzysztof Kozlowski <krzk+dt@kernel.org>; Conor Dooley
> <conor+dt@kernel.org>; Philipp Zabel <p.zabel@pengutronix.de>;
> linux-crypto@vger.kernel.org; devicetree@vger.kernel.org;
> linux-kernel@vger.kernel.org
> 主题: Re: [PATCH v7 2/2] hwrng: starfive: rework clk/reset teardown order for
> JHB100
>
> On Wed, Aug 12, 2026 at 10:34:01AM +0800, lianfeng.ouyang wrote:
> > From: Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
> >
> > Rework the StarFive TRNG driver to address hardware-specific requirements
> > for JHB100 SoC. To avoid reset-domain crossing glitches, the driver now
> > ensures clocks are gated before asserting reset during teardown for
> > JHB100, while JH7110 retains the original reset-first sequence.
> >
> > Add per-compatible match data (struct starfive_trng_data) describing the
> > clock/reset teardown order, a new "starfive,jhb100-trng" compatible, and
> > select the ordering from it.
> >
> > Fix the runtime-PM get/put balancing across the init/read/reseed/cleanup
> > paths, manage PM and the clk/reset teardown via devm so all error paths
> > unwind correctly, run the SEU-triggered reseed from a workqueue instead
> > of hard IRQ, and serialise the command sequences with a mutex.
> >
> > Signed-off-by: Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
> > ---
> > MAINTAINERS | 2 +-
> > drivers/char/hw_random/jh7110-trng.c | 295
> +++++++++++++++++++++------
> > 2 files changed, 239 insertions(+), 58 deletions(-)
>
> Sashiko wasn't able to apply your patches. Please try rebasing
> and reposting.
>
> https://sashiko.dev/#/patchset/20260812023401.44149-1-lianfeng.ouyang%40s
> tarfivetech.com
>
> Thanks,
Thanks for the feedback. I will rebase my patches against the latest tree and repost them.
Best Regards,
Lianfeng Ouyang
> --
> Email: Herbert Xu <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2026-09-04 9:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 2:33 [PATCH v7 0/2] hwrng: starfive: add JHB100 support and fix clk/reset teardown lianfeng.ouyang
2026-08-12 2:34 ` [PATCH v7 1/2] dt-bindings: rng: starfive,jh7110-trng: add jhb100, drop jh8100 lianfeng.ouyang
2026-08-12 2:34 ` [PATCH v7 2/2] hwrng: starfive: rework clk/reset teardown order for JHB100 lianfeng.ouyang
2026-09-04 9:24 ` Herbert Xu
2026-09-04 9:35 ` Lianfeng Ouyang [this message]
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=NT0PR01MB12773F5E2E17527283D2B0E482B52@NT0PR01MB1277.CHNPR01.prod.partner.outlook.cn \
--to=lianfeng.ouyang@starfivetech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=krzk+dt@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olivia@selenic.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@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®