From: sashiko-bot@kernel.org
To: "Raghav Sharma" <raghav.s@samsung.com>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 07/14] clk: samsung: exynos8855: add block peric clock
Date: Thu, 03 Dec 2026 15:44:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-248138@kernel.org> (raw)
In-Reply-To: <20261203151046.1562399-8-raghav.s@samsung.com>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] clk: samsung: exynos8855: wrong parent for
CLK_GOUT_PERIC_UART_DBG_PERIC_PCLK
- [Medium] clk: samsung: exynos8855: missing CLK_SET_RATE_PARENT on
PERIC MMC/USI clocks
- [Low] clk: samsung: exynos8855: typo in
CLK_GOUT_PERIC_SYSREG_PERIC_PCLK name
- [Low] clk: samsung: inconsistent gate clock naming in peric_gate_clks
--
commit 4b050255623eea61177d8075078a7fbd095bce80
Author: Alim Akhtar <alim.akhtar@samsung.com>
clk: samsung: exynos8855: add block peric clock
This commit adds the CMU_PERIC clock definitions and registers the
"samsung,exynos8855-cmu-peric" compatible in the Exynos8855 clock driver.
> diff --git a/drivers/clk/samsung/clk-exynos8855.c b/drivers/clk/samsung/clk-exynos8855.c
> index 3fade1d1155f9..e5b3e4f03b31a 100644
> --- a/drivers/clk/samsung/clk-exynos8855.c
> +++ b/drivers/clk/samsung/clk-exynos8855.c
[ ... ]
> @@ -1439,6 +1441,720 @@ static void __init exynos8855_cmu_top_init(struct device_node *np)
[ ... ]
> +/* ---- MUX ---- */
> +static const struct samsung_mux_clock peric_mux_clks[] __initconst = {
> + MUX(CLK_MOUT_PERIC_IP_USER, "mout_clkcmu_peric_ip_user",
> + mout_clkcmu_peric_ip_user_p, PLL_CON0_MUX_CLKCMU_PERIC_IP_USER, 4, 1),
> + MUX(CLK_MOUT_PERIC_MMC_CARD_USER, "mout_clkcmu_peric_mmc_card_user",
> + mout_clkcmu_peric_mmc_card_user_p, PLL_CON0_MUX_CLKCMU_PERIC_MMC_CARD_USER,
> + 4, 1),
[Severity: Medium]
Should CLK_MOUT_PERIC_MMC_CARD_USER,
CLK_GOUT_PERIC_MMC_CARD_IPCLKPORT_SDCLKIN, and the USI functional IPCLK
gates (CLK_GOUT_PERIC_USI*_IPCLKPORT_IPCLK) set CLK_SET_RATE_PARENT?
Because peric_cmu_info sets auto_clock_gate, these gates have no rate ops,
and MUX() omits CLK_SET_RATE_PARENT. Without it, clk_set_rate() from
dw_mci_exynos_adjust_clock() and s3c64xx_spi_config() returns 0 without
updating the upstream dividers, breaking SD/MMC and SPI frequency scaling.
[ ... ]
> +/* ---- GATE ---- */
> +static const struct samsung_gate_clock peric_gate_clks[] __initconst = {
> + GATE(CLK_GOUT_PERIC_CMU_PERIC_PCLK, "gout_peric_cmu_peric_pclk",
> + "dout_clkcmu_peric_nocp",
> + CLK_CON_GAT_BLK_PERIC_UID_CMU_PERIC_IPCLKPORT_PCLK,
> + 21, 0, 0),
> + GATE(CLK_GOUT_PERIC_SYSREG_PERIC_PCLK, "gout_preic_sysreg_peric_pclk",
> + "dout_clkcmu_peric_nocp",
> + CLK_CON_GAT_BLK_PERIC_UID_SYSREG_PERIC_IPCLKPORT_PCLK,
> + 21, 0, 0),
[Severity: Low]
There is a typo in the clock name string: "gout_preic_sysreg_peric_pclk"
should be "gout_peric_sysreg_peric_pclk".
> + GATE(CLK_GOUT_PERIC_UART_DBG_PERIC_PCLK, "gout_peric_uart_dbg_peric_pclk",
> + "dout_clkcmu_peric_uart_dbg",
> + CLK_CON_GAT_BLK_PERIC_UID_UART_DBG_IPCLKPORT_PCLK,
> + 21, 0, 0),
[Severity: Medium]
Should CLK_GOUT_PERIC_UART_DBG_PERIC_PCLK be parented to
"dout_clkcmu_peric_nocp" instead of "dout_clkcmu_peric_uart_dbg"?
Its gate register (0x2064) sits in the NOCP bus gate block where all other
PCLK gates use "dout_clkcmu_peric_nocp", while the separate functional
clock gate CLK_GOUT_PERIC_UART_DBG_IPCLKPORT_IPCLK (0x20c4) is already
under "dout_clkcmu_peric_uart_dbg".
With the current parent, clk_get_rate() and enable refcounts for the
UART_DBG PCLK track the UART functional divider instead of the PERIC NOCP
bus clock.
> + GATE(CLK_GOUT_PERIC_USI_PERIC_PCLK, "gout_peric_usi_peric_pclk",
> + "dout_clkcmu_peric_nocp",
> + CLK_CON_GAT_BLK_PERIC_UID_USI00_USI_IPCLKPORT_PCLK,
> + 21, 0, 0),
> + GATE(CLK_GOUT_PERIC_MMC_CARD_IPCLKPORT_SDCLKIN,
> + "gout_peric_mmc_card_ipclkport_sdclkin",
> + "mout_clkcmu_peric_mmc_card_user",
> + CLK_CON_GAT_BLK_PERIC_UID_MMC_CARD_IPCLKPORT_SDCLKIN,
> + 21, 0, 0),
[Severity: Low]
As reported by Peter Griffin on v1 [1], these gates do not follow the
clk-gs101.c convention of stripping _IPCLKPORT and _RSTNSYNC from gate
names and DT IDs. The first four entries in peric_gate_clks strip
_IPCLKPORT, while the other 67 keep it and 12 also keep _RSTNSYNC.
[1] https://lore.kernel.org/r/CADrjBPrBMea9kmYG-=0w=gA6xZYk1+1uFNvjqJUeNXeRaxaHZA@mail.gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203151046.1562399-1-raghav.s@samsung.com?part=7
next prev parent reply other threads:[~2026-12-03 15:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20261203145310epcas5p19b1f51b9777ac211d368dff8022d0497@epcas5p1.samsung.com>
2026-12-03 15:10 ` [PATCH v4 00/14] Add clock support for Exynos8855 SoC Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 01/14] dt-bindings: clock: exynos8855: add top & peric clock definitions Raghav Sharma
2026-12-03 15:26 ` sashiko-bot
2026-12-03 15:10 ` [PATCH v4 02/14] dt-bindings: clock: exynos8855: add peris " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 03/14] dt-bindings: clock: exynos8855: add hsi " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 04/14] dt-bindings: clock: exynos8855: add usb " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 05/14] clk: samsung: clk-pll: Add support for pll_4313 Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 06/14] clk: samsung: exynos8855: add block top clock support Raghav Sharma
2026-12-03 15:37 ` sashiko-bot
2026-12-03 15:10 ` [PATCH v4 07/14] clk: samsung: exynos8855: add block peric clock Raghav Sharma
2026-12-03 15:44 ` sashiko-bot [this message]
2026-12-03 15:10 ` [PATCH v4 08/14] clk: samsung: exynos8855: add block peris clock support Raghav Sharma
2026-12-03 15:50 ` sashiko-bot
2026-12-03 15:10 ` [PATCH v4 09/14] clk: samsung: exynos8855: add block hsi " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 10/14] clk: samsung: exynos8855: add block usb " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 11/14] arm64: dts: exynos8855: add cmu_top & cmu_peric clock DT nodes Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 12/14] arm64: dts: exynos8855: add cmu_peris " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 13/14] arm64: dts: exynos8855: add cmu_hsi " Raghav Sharma
2026-12-03 15:10 ` [PATCH v4 14/14] arm64: dts: exynos8855: add cmu_usb " Raghav Sharma
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-248138@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=raghav.s@samsung.com \
--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