From: sashiko-bot@kernel.org
To: "Gabriel Fernandez" <gabriel.fernandez@foss.st.com>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 1/5] dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG
Date: Thu, 03 Dec 2026 18:19:07 +0000 [thread overview]
Message-ID: <sashiko-outbox-248366@kernel.org> (raw)
In-Reply-To: <20261203-ups_mp25_clk_syscfg-v6-1-76d65d1b811d@foss.st.com>
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 <gabriel.fernandez@foss.st.com>
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?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-ups_mp25_clk_syscfg-v6-0-76d65d1b811d@foss.st.com?part=1
next prev parent reply other threads:[~2026-12-03 18:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 17:11 [PATCH v6 0/5] clk: stm32: Add the STM32MP2 SYSCFG LTDC pixel clock mux Gabriel Fernandez
2026-12-03 17:11 ` [PATCH v6 1/5] dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG Gabriel Fernandez
2026-12-03 18:19 ` sashiko-bot [this message]
2026-12-03 17:11 ` [PATCH v6 2/5] clk: stm32: Add STM32MP25 SYSCFG clock driver Gabriel Fernandez
2026-12-03 17:11 ` [PATCH v6 3/5] soc: st: stm32mp2-syscfg: register the clock device Gabriel Fernandez
2026-12-03 17:11 ` [PATCH v6 4/5] arm64: dts: st: add LTDC pixel clock mux inputs on stm32mp23 Gabriel Fernandez
2026-12-03 17:11 ` [PATCH v6 5/5] arm64: dts: st: add LTDC pixel clock mux inputs on stm32mp25 Gabriel Fernandez
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-248366@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gabriel.fernandez@foss.st.com \
--cc=linux-clk@vger.kernel.org \
--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