From: sashiko-bot@kernel.org
To: "Junhui Liu" <junhui.liu@pigmoral.tech>
Cc: robh@kernel.org, conor+dt@kernel.org,
linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 7/8] clk: sunxi-ng: a733: Add bus clock gates
Date: Sun, 12 Jul 2026 08:13:43 +0000 [thread overview]
Message-ID: <20260712081343.B967A1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260711-a733-clk-v2-7-974d188cbe0c@pigmoral.tech>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Bus clock gates for multiple peripherals are incorrectly parented to the 24MHz external oscillator (hosc) instead of their actual AHB/APB buses.
- [Low] Typographical error in the string names for the IOMMU1 system clocks, using an underscore instead of a hyphen.
--
--- Patch [7]: [PATCH v2 7/8] clk: sunxi-ng: a733: Add bus clock gates ---
commit 92eebd6b3ec66a1f50b982f0effa98e2238c2a4d
Author: Junhui Liu <junhui.liu@pigmoral.tech>
clk: sunxi-ng: a733: Add bus clock gates
This commit adds the bus clock gates that control access to the devices'
register interface on the Allwinner A733 SoC, including UARTs, SPI, I2C,
and multimedia engines. It also marks ahb-store and mbus-store as critical
to ensure boot/storage devices remain accessible.
> diff --git a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
> index bf26e310f08a9..48d7c0395ae83 100644
> --- a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
> +++ b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
> @@ -448,6 +454,8 @@ static SUNXI_CCU_M_DATA_WITH_MUX_GATE(trace_clk, "trace", trace_parents, 0x540,
> BIT(31), /* gate */
> 0);
>
> +static SUNXI_CCU_GATE_DATA(bus_its_pcie0_aclk_clk, "bus-its-pcie0-aclk", hosc, 0x574, BIT(1), 0);
> +
[Severity: High]
Are these bus clock gates correctly parented to hosc instead of their
respective AHB or APB buses?
If the Common Clock Framework is misinformed about the hardware topology, it
might dynamically disable the actual underlying bus clock if it believes it
has no active children. Could this cause a synchronous external abort
(bus hang) when drivers try to access the registers of these peripherals?
This same parenting to hosc also appears in several other bus gates added
later in this patch, such as bus_msi_lite0_clk, bus_npu_clk, bus_ufs_clk,
and the bus_i2spcm series of clocks.
[ ... ]
> +static SUNXI_CCU_GATE_HWS(mbus_iommu1_sys_clk, "mbus-iommu1-sys", mbus_hws, 0x5b4, BIT(0), 0);
> +static SUNXI_CCU_GATE_HWS(apb_iommu1_sys_clk, "apb_iommu1-sys", apb0_hws, 0x5b4, BIT(1), 0);
> +static SUNXI_CCU_GATE_HWS(ahb_iommu1_sys_clk, "ahb_iommu1-sys", ahb_hws, 0x5b4, BIT(2), 0);
[Severity: Low]
This isn't a bug, but there's a typo in the string names for the iommu1
system clocks.
They use an underscore instead of a hyphen ("apb_iommu1-sys" instead of
"apb-iommu1-sys"). Does this break the naming convention established by the
iommu0 clocks just above it?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260711-a733-clk-v2-0-974d188cbe0c@pigmoral.tech?part=7
next prev parent reply other threads:[~2026-07-12 8:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-11 8:10 [PATCH v2 0/8] clk: sunxi-ng: Add support for Allwinner A733 CCU and PRCM Junhui Liu
2026-07-11 8:10 ` [PATCH v2 1/8] dt-bindings: clk: sun60i-a733-ccu: Add allwinner A733 support Junhui Liu
2026-07-12 8:13 ` sashiko-bot
2026-07-12 14:35 ` Krzysztof Kozlowski
2026-07-11 8:10 ` [PATCH v2 2/8] clk: sunxi-ng: sdm: Add dual patterns support Junhui Liu
2026-07-11 8:10 ` [PATCH v2 3/8] clk: sunxi-ng: a733: Add PRCM CCU Junhui Liu
2026-07-12 8:13 ` sashiko-bot
2026-07-11 8:10 ` [PATCH v2 4/8] clk: sunxi-ng: a733: Add PLL clocks support Junhui Liu
2026-07-12 8:13 ` sashiko-bot
2026-07-11 8:10 ` [PATCH v2 5/8] clk: sunxi-ng: a733: Add bus " Junhui Liu
2026-07-12 8:13 ` sashiko-bot
2026-07-11 8:10 ` [PATCH v2 6/8] clk: sunxi-ng: a733: Add mod " Junhui Liu
2026-07-12 8:13 ` sashiko-bot
2026-07-12 14:25 ` Junhui Liu
2026-07-11 8:10 ` [PATCH v2 7/8] clk: sunxi-ng: a733: Add bus clock gates Junhui Liu
2026-07-12 8:13 ` sashiko-bot [this message]
2026-07-12 14:29 ` Junhui Liu
2026-07-11 8:10 ` [PATCH v2 8/8] clk: sunxi-ng: a733: Add reset lines Junhui Liu
2026-07-12 8:13 ` sashiko-bot
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=20260712081343.B967A1F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=junhui.liu@pigmoral.tech \
--cc=linux-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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