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=1796321948; b=PA447+XDH/4XD0ON+QsKTN5bbZiH0rCQ5M9APfgKEItwH/YNCbXTvDMKCEWd5gzsgZ0i XzF1kXovaWLngvGuceob9Fw5n6LzTczbPWv908ivP6L/EPCKSd4VIDcE/3GakhgThJnjK 87FLpJulCc5e0Buh3H/ykJx/YCh5AX8ZGwxX0LYaNxbtfKYsgqOak03/1TNEOYSZFE3e0 iGkglahHMwvq9z3XbtUrHsWG/MTEwemi+nqMAzCMgDho7qDVfZMmpv9U+YHEZqF7432hb 8s72ES6wfdLstQXx8uu8UC1pfIhLA3iMBgoupSbGiGAA5zfxP+aJ7fXk6ar0CrvCReA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796321948; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=/rJUsBuwuwftH4vqg6E04sM03cNiNENIt1BfeDLYrSo=; b=va5hRwUiy0XHlDw+CGR12/NicHima8O0i3OUzoyX3/BMbQuKHrR7JGzT52+DX69hMNBB LGEA9iQEKniz8K9xfH5I+FsQ8XpiHtE8IRzT9ETeenxU7dVyKrxI8DqznQpxdgAD5PVeD IH7XnagLl7E4UQj+E/tmRHcd16E5nWvpbzp7F9RvDWEKwCYldplfr9EvsdZ/XiSaNwxPF pgFPWz3XarFLtQsynmFyOwTyWLdp7Sd+Fo4H4mf78gaMJTtCSwYaYLq9JPDybgiiFxYHd CUH82HA7qE0cqpPTlWjN3fb/EU3LWbgXT+OwyS5eTJ97OmNQ4pSBVYTvbilAeOgYtBw== 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=iqrEbaDu; 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 E566E606A32F; Thu, 3 Dec 2026 18:19:07 +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=iqrEbaDu Received: by smtp.kernel.org (Postfix) with ESMTPSA id 727591F00924; Thu, 3 Dec 2026 18:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796321947; bh=/rJUsBuwuwftH4vqg6E04sM03cNiNENIt1BfeDLYrSo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iqrEbaDuySgfMBL//wpDXqrbAv2AJjGRoYARVIMDifh/7lMKqVwfyy/PSkMhX9mtz f7oBujYOQv0y2rhspmSu7jtvnz1+g0rmq2usS1uqcCtAAFW27tuHayjdpJEZmOCSGw X4whdM2c9IY7vGfBIRrUbM3a85Dvo+9wOUMLuCVr0N9Dd0MTBXwlVbUhs0Q1gUv73b lJ298wRN4y3o45qzLqFo88fodtWpkuI7/qEs6v4GjvoLgMT2/lP94bmS6cgfOx/Ltl J22eEZJAbXWuFnaHxX2g9l8BL+66T8JWRzTAk6p7XgzDLfOZ/oLV3Cf+huuF/Sv0FS kh16xBe/q3tPg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 1/5] dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG Reply-To: sashiko-reviews@lists.linux.dev To: "Gabriel Fernandez" Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-ups_mp25_clk_syscfg-v6-1-76d65d1b811d@foss.st.com> References: <20261203-ups_mp25_clk_syscfg-v6-0-76d65d1b811d@foss.st.com> <20261203-ups_mp25_clk_syscfg-v6-1-76d65d1b811d@foss.st.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:19:07 +0000 X-Mailing-List: linux-clk@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 1 potential issue to consider: - [Medium] dt-bindings: arm: stm32: syscon hijacks CK_KER_LTDC as SYSCFG register clock -- commit ecf1ac1c1204c5b9b0e91c51ad320f4722c22c75 Author: Gabriel Fernandez dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG This commit adds the st,stm32mp235-syscfg and st,stm32mp255-syscfg compatibles and documents the three display mux input clocks on the STM32MP2 SYSCFG syscon node. > diff --git a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.= yaml b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml > index a559f8b03b842..2a3c0ce903914 100644 > --- a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml > +++ b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml [ ... ] > + - if: > + properties: > + compatible: > + contains: > + enum: > + - st,stm32mp235-syscfg > + - st,stm32mp255-syscfg > + then: > + properties: > + clocks: > + items: > + - description: LTDC kernel clock > + - description: LVDS PHY pixel clock > + - description: DSI PHY byte lane clock [Severity: Medium] Does putting the LTDC kernel clock at clocks index 0 on a syscon node cause drivers/mfd/syscon.c to hijack it as the SYSCFG register clock? When any consumer looks up the SYSCFG regmap, of_syscon_register() calls of_clk_get(np, 0) and passes ck_ker_ltdc to regmap_mmio_attach_clk(), which permanently keeps it prepared for the lifetime of the regmap. Because ck_ker_ltdc is parented by the non-atomic OP-TEE SCMI clock FLEXGEN_27, scmi_clk_ops_alloc() maps clock enable to ops->prepare. That leaves FLEXGEN_27 enabled in OP-TEE for the entire system uptime, even on headless boards or while the display is off. Every unrelated SYSCFG register read or write also calls clk_enable() and clk_disable() in regmap_mmio_read() and regmap_mmio_write(), repeatedly toggling the LTDC hardware gate (GATE_LTDC). Ordering clocks around of_syscon_register() also bakes a Linux syscon.c quirk into the DT ABI, and ck_ker_ltdc is guarded by SEC_RIFSC(80) in clk-stm32mp25.c rather than always being provided by RCC. Could the display clock mux instead be placed in a dedicated subnode, or otherwise avoid generic syscon clock attachment on SYSCFG? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-ups_mp25_c= lk_syscfg-v6-0-76d65d1b811d@foss.st.com?part=3D1