From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796312646; b=oguegi/RROu5qrWLafngZTi+DuQNX0bvAzXed7dJjiy3jowicn14/ILFpMIOGqBqJxm1 PJZUc95uLYx19a3WL6Stl784qXVHE5hv0/BPk4KWozi98jlUP1Aa/eSSd3UWTvnLSqz75 l9RVBI9WXYDz784tC7sQBVFkT+BLQoIaxt2zXLm4fXpzjbZ38VotKe+BlEpGF2yodQpYz 8AKcy8YNR1CcoDG8sFf8jR2sO2tMwzaP6JkYuRYldwLasX6y+8TcoX7YEaSQ6ZUVz8xYT id9sEuh8ayG+gc8qdV0+p5Oe4ID9E+ObH/0FFvzHZ2gznf0XXpLxi9PBteuGE3w9TTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312646; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=SmP923msmeCFvNJ1/2eZU+d1Nrx7R+CSC3/FrsVuYRM=; b=X0MxuX3jFiCN8ZRcVgYNxTM3Wrg+q/VehVCt8o6uvOgHjz4be8gw290izwv0xTF+KNoO x/LE/qCOXMRuOhSwkLdYyJNgXy40+ksbXq7bZkcCRQAqHoi3+fqTegRUwCzjGgrQRZtRu oXUzNUL133vAcIyZ2DvAqKlPG/ToFx8vXbHbB4aUnKllEjZI++4z5iupGxB/rrGmJ0jJr Bi4XhcZPfrRT9nCBcsZ5MW6pvHxOSiFCDuJbgvu5KZDmjWQcoq3MAcqZQtKmn5BZsw9kE 3fk4LPXkJi4TW3gOJU4LusWD5VFWEglzZgo7TAUVAkd5nNjygPs4fsseJzj7xM8sI1A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mfVCdbcr; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 924C3606A322; Thu, 3 Dec 2026 15:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mfVCdbcr Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1B561F000C1; Thu, 3 Dec 2026 15:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796312646; bh=SmP923msmeCFvNJ1/2eZU+d1Nrx7R+CSC3/FrsVuYRM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=mfVCdbcrs2JSANTbrlsBWoBScvoOu9C8EzraTZKekZ0cmQcgdjuIH/ytxkjZlRj1d eIaQKNcx8YoAfYAe95+ph51N8ECIBCkLFoV/+55ASG2oSgxeyDAPGaysOeSpiSiZIK +x8alYeLqC3dB55N7PjPS1h5l+GF4sQRgiw2+lhK8dZ7kbWGqemGhLu7RW1+C+cGn3 q+5So8lF82PNih2VvjLtvBcJiUEWHFelTSPp0cEInW3YHQjQSBidFd63jJB9bHvTRa UDdb1RQTlnlAmaz3pPaaaXFywh+vQ5kuMbHlwpx6Brc+hgSanz7nyeEW0uAdLIb0+5 mbG1/nq1iQTYw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 07/14] clk: samsung: exynos8855: add block peric clock Reply-To: sashiko-reviews@lists.linux.dev To: "Raghav Sharma" Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203151046.1562399-8-raghav.s@samsung.com> References: <20261203151046.1562399-1-raghav.s@samsung.com> <20261203151046.1562399-8-raghav.s@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:44:05 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/c= lk-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 =3D { > + 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_CA= RD_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 =3D= { > + 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_pcl= k", > + "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-=3D0w=3DgA6xZYk1+1uFNvjqJUe= NXeRaxaHZA@mail.gmail.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203151046.1562= 399-1-raghav.s@samsung.com?part=3D7