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=1796326114; b=kTPhn7A4iO768zlg2otJcD+Li8x54Akb1phv0ZPAdk7UJPiYnmxF/rDqQVfdytqpAF7h 8KnOOzEr2yJPbTkgJuRgWu7khp3ufMY1xNhH9zfonNL/jqygUHSPJFiMLkHJLQVBq0cuT /sJpxhV8Fsg6CwORDrtp0zGR4LzneI0yKX4WjBFCesZxmOKmgIwd0u8OWbPidPZxKsFpj Pv2kZl21fSOEO0PFp0FzjG0hVkmWgLbrgFr66rSSWlnNw1Zc0O87Tp8phY2Em/f1lhMvz 0j5w9DLcS27I7/QVzZwy5ShktZMEYE9+3WbrntSUWW6ExAo9eBdTdrPB9GnHm9Yl8kA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796326114; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=OlvbdtF0TepVvQX9afcNyi8BjjIzYQur06cqUkES/9Q=; b=cDSqVqbjMILJYbBrjdYdqRk8UFO3voMG5cSN1XvbZpyhgoIw0WtakNIvfLYsx1nTAinO tV/d8si49a9HsQMkdzSW+v+n1fs67bcGIfnQKDVWxBEPUDDhQ3aItB9Uehsm9vU2TZrxF 0ysdA1TcJZpYy1x8/fpGawW2XyayhMsT4OA+QMJFTXf2mmAaR8kp2fFP4ymyqqXAR5XlE gfZzZcn5epwqDPKwafcvKDIsXSCv6jLERzl5ThDIcPORVPwbET7Hi/+VRVpcOwnNZvY6D R7p2dsq1WMLupclct5Ck5hVSHgZPzEXgeuJRyzfQWanK/PnfmA/HGVyYF4vorbt8Ahg== 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=RpjnVdxw; 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 88673606A688; Thu, 3 Dec 2026 19:28:34 +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=RpjnVdxw Received: by smtp.kernel.org (Postfix) with ESMTPSA id 981941F00931; Thu, 3 Dec 2026 19:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796326113; bh=OlvbdtF0TepVvQX9afcNyi8BjjIzYQur06cqUkES/9Q=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=RpjnVdxwOsoXs4zwcP0qP8RaP/XXBeMlo47Vh1Wou5OQDty5feCxCSQyFggfEjFxJ 5ZC8ctCsE4mpI+e5VDxbfG5rrsuYVK1z978u71yFIy3HZJjWTBy/Qs5Q8ioVyQxyFQ WNKpF/TU9kJx7CAVmtZ+OH1r20fvXwz/w8NnjkhMK6Fe3dWZwmTnurOz476SyNwNfo 0IFXrdhmOqbjAAC4Mj/Awl3YhqmhJSbynzNUA8RbWbx3m7GizvzIvex6BRNEojkJyA tbnBfuc4b1lu/qeQfn7K0LZ6ng9Kzq1L/j+kwwIn8uSMSXPOvGj6PhDwcDTlq2hTuf KxE21HOo8jgOA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 5/5] arm64: dts: st: add LTDC pixel clock mux inputs on stm32mp25 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-5-76d65d1b811d@foss.st.com> References: <20261203-ups_mp25_clk_syscfg-v6-0-76d65d1b811d@foss.st.com> <20261203-ups_mp25_clk_syscfg-v6-5-76d65d1b811d@foss.st.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 19:28:33 +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] arm64: dts: st: syscfg clocks[0] attaches CK_KER_LTDC to syscon regmap -- commit ee3cdb295fa05bcdffcd6456761965495db86435 Author: Gabriel Fernandez arm64: dts: st: add LTDC pixel clock mux inputs on stm32mp25 This commit adds the STM32MP255-specific compatible and the three LTDC pixel clock mux input clocks to the syscfg node in stm32mp255.dtsi. > diff --git a/arch/arm64/boot/dts/st/stm32mp255.dtsi b/arch/arm64/boot/dts= /st/stm32mp255.dtsi > index 7a598f53a2a0e..4d4d100d3f894 100644 > --- a/arch/arm64/boot/dts/st/stm32mp255.dtsi > +++ b/arch/arm64/boot/dts/st/stm32mp255.dtsi > @@ -40,4 +40,10 @@ venc: venc@480e0000 { > clocks =3D <&rcc CK_BUS_VENC>; > access-controllers =3D <&rifsc 90>; > }; > -}; > \ No newline at end of file > +}; > + > +&syscfg { > + compatible =3D "st,stm32mp255-syscfg", "st,stm32mp25-syscfg", "syscon"; > + clocks =3D <&rcc CK_KER_LTDC>, <&lvds>, <&clk_dsi_txbyte>; > + clock-names =3D "ltdc", "lvds", "dsi"; > +}; [Severity: Medium] Does placing CK_KER_LTDC at clocks[0] on a generic syscon node cause of_syscon_register() to attach it to the shared syscfg MMIO regmap? Because stm32mp2-syscfg does not register a custom regmap, of_syscon_register() fetches clocks[0] via of_clk_get(np, 0) and passes it to regmap_mmio_attach_clk(). Every syscfg regmap access then brackets the MMIO operation with clk_enable() and clk_disable() on CK_KER_LTDC. CK_KER_LTDC shares GATE_LTDC with CK_BUS_LTDC, starting at refcount zero. When stm32mp25_syscfg_mux_get_parent() reads SYSCFG_DISPLAYCLKCR during syscfg probe before simpledrm or ltdc claims the LTDC clocks, that cycle clears GATE_LTDC and gates off an active bootloader display. In addition, regmap_mmio_attach_clk() calls clk_prepare() once and never unprepares it. Since parent CK_SCMI_FLEXGEN_27 uses the non-atomic OP-TEE SCMI transport (enabling the clock in .prepare), it stays enabled in firmware for the entire uptime, even when LTDC is unused or suspended. Having drivers/soc/st/stm32mp2-syscfg.c register a clock-less regmap via of_syscon_register_regmap() would avoid both issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-ups_mp25_c= lk_syscfg-v6-0-76d65d1b811d@foss.st.com?part=3D5