From: sashiko-bot@kernel.org
To: "Weihong Guan" <weihong.guan@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] nvmem: rockchip-otp: Add support for RV1106
Date: Thu, 03 Dec 2026 13:06:07 +0000 [thread overview]
Message-ID: <sashiko-outbox-247822@kernel.org> (raw)
In-Reply-To: <20261203122416.682071-3-weihong.guan@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] nvmem: rockchip-otp: rv1106_otp_clocks requires nonexistent
phy clock
--
commit ede968e4fdcf1ce13352f1f4f84a15321202e696
Author: Weihong Guan <weihong.guan@gmail.com>
nvmem: rockchip-otp: Add support for RV1106
This commit adds Rockchip RV1106/RV1103 support to the Rockchip OTP
driver, reusing rk3568_otp_read() with a 0x80-byte size and six clocks.
> diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c
> index 7eb834516ab4b..43712b6f0194d 100644
> --- a/drivers/nvmem/rockchip-otp.c
> +++ b/drivers/nvmem/rockchip-otp.c
> @@ -387,6 +387,18 @@ static const struct rockchip_data rk3588_data = {
> .reg_read = rk3588_otp_read,
> };
>
> +static const char * const rv1106_otp_clocks[] = {
> + "otp", "apb_pclk", "phy", "sbpi", "arb", "pmc",
> +};
[Severity: Medium]
Should rv1106_otp_clocks require a phy clock?
The RV1106 CRU in include/dt-bindings/clock/rockchip,rv1106-cru.h and
drivers/clk/rockchip/clk-rv1106.c has no OTP PHY clock; the sixth
non-secure OTP clock is PCLK_OTP_MASK.
Because rockchip_otp_probe() fetches every entry with
devm_clk_bulk_get(), requiring phy either fails probe with -ENOENT when
a DT node lists only the real CRU clocks or locks the DT ABI into
mislabeling PCLK_OTP_MASK as phy.
On RK3528, which has the same CRU OTP clocks, commit a255f352b0e0
("nvmem: rockchip-otp: Add support for RK3528") omitted phy. Both
rv1106_otp_clocks and commit "dt-bindings: nvmem: rockchip,otp: Add
RV1106" should either drop phy or name PCLK_OTP_MASK (e.g., mask).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203122416.682071-1-weihong.guan@gmail.com?part=2
prev parent reply other threads:[~2026-12-03 13:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 12:24 [PATCH 0/2] nvmem: rockchip-otp: Add support for the RV1106 Weihong Guan
2026-12-03 12:24 ` Weihong Guan
2026-12-03 12:24 ` [PATCH 1/2] dt-bindings: nvmem: rockchip,otp: Add RV1106 Weihong Guan
2026-12-03 12:24 ` Weihong Guan
2026-12-03 12:48 ` sashiko-bot
2026-12-03 12:24 ` [PATCH 2/2] nvmem: rockchip-otp: Add support for RV1106 Weihong Guan
2026-12-03 12:24 ` Weihong Guan
2026-12-03 13:06 ` sashiko-bot [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=sashiko-outbox-247822@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=weihong.guan@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.