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 2/5] clk: stm32: Add STM32MP25 SYSCFG clock driver
Date: Thu, 03 Dec 2026 18:50:10 +0000 [thread overview]
Message-ID: <sashiko-outbox-248426@kernel.org> (raw)
In-Reply-To: <20261203-ups_mp25_clk_syscfg-v6-2-76d65d1b811d@foss.st.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] clk: stm32: missing suspend/resume restore of
SYSCFG_DISPLAYCLKCR mux
- [Low] clk: stm32: COMMON_CLK_STM32MP25_SYSCFG selects MFD_SYSCON
without HAS_IOMEM
--
commit b998b05003228e1283da98abd68d8d8cfb63685e
Author: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
clk: stm32: Add STM32MP25 SYSCFG clock driver
This commit adds an auxiliary clock driver for the STM32MP25 SYSCFG
DISPLAYCLKCR mux, which selects the LTDC pixel clock source among the
DSI, LVDS, and LTDC kernel clocks.
> diff --git a/drivers/clk/stm32/Kconfig b/drivers/clk/stm32/Kconfig
> index 5dbd75cde6575..18289816f030a 100644
> --- a/drivers/clk/stm32/Kconfig
> +++ b/drivers/clk/stm32/Kconfig
> @@ -39,5 +39,18 @@ config COMMON_CLK_STM32MP257
> help
> Support for stm32mp25x SoC family clocks.
>
> +config COMMON_CLK_STM32MP25_SYSCFG
> + tristate "Clock driver for stm32mp25x SYSCFG clocks"
> + depends on COMMON_CLK_STM32MP257
> + depends on SOC_STM32MP2 || COMPILE_TEST
> + select AUXILIARY_BUS
> + select MFD_SYSCON
> + default COMMON_CLK_STM32MP257
[Severity: Low]
Can selecting MFD_SYSCON here produce unmet dependency warnings and build
failures under COMPILE_TEST?
MFD_SYSCON depends on HAS_IOMEM, which neither COMMON_CLK_STM32MP25_SYSCFG
nor its dependencies require. With COMPILE_TEST=y on a !HAS_IOMEM
architecture such as ARCH=um, selecting MFD_SYSCON builds
drivers/mfd/syscon.c and fails to link on of_iomap() and iounmap().
Adding "depends on HAS_IOMEM" would prevent this.
> diff --git a/drivers/clk/stm32/clk-stm32mp25-syscfg.c b/drivers/clk/stm32/clk-stm32mp25-syscfg.c
> new file mode 100644
> index 0000000000000..c7e840fb2d951
> --- /dev/null
> +++ b/drivers/clk/stm32/clk-stm32mp25-syscfg.c
> @@ -0,0 +1,127 @@
[ ... ]
> +static const struct clk_ops stm32mp25_syscfg_mux_ops = {
> + .get_parent = stm32mp25_syscfg_mux_get_parent,
> + .set_parent = stm32mp25_syscfg_mux_set_parent,
> + .determine_rate = clk_hw_determine_rate_no_reparent,
> +};
[ ... ]
> +static struct auxiliary_driver stm32mp25_syscfg_clk_driver = {
> + .probe = stm32mp25_syscfg_clk_probe,
> + .id_table = stm32mp25_syscfg_clk_ids,
> +};
[Severity: Medium]
Does SYSCFG_DISPLAYCLKCR need to be saved and restored across system
suspend/resume?
Other STM32MP25 drivers sharing the same st,stm32mp25-syscfg syscon, such
as stm32_omm_resume() and stm32_dwmac_resume(), explicitly reprogram their
SYSCFG registers on resume because they are lost in low-power suspend
states like Standby.
Without PM sleep callbacks on stm32mp25_syscfg_clk_driver (or
save_context/restore_context in stm32mp25_syscfg_mux_ops), Standby leaves
SYSCFG_DISPLAYCLKCR at its LVDS reset value while the clock framework
still caches the previous parent.
Because ltdc_resume() only calls clk_prepare_enable() and
clk_core_set_parent_nolock() skips reprogramming when the cached parent
matches, LTDC RGB (DPI) or DSI display output fails after resume.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-ups_mp25_clk_syscfg-v6-0-76d65d1b811d@foss.st.com?part=2
next prev parent reply other threads:[~2026-12-03 18:50 UTC|newest]
Thread overview: 8+ 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
2026-12-03 17:11 ` [PATCH v6 2/5] clk: stm32: Add STM32MP25 SYSCFG clock driver Gabriel Fernandez
2026-12-03 18:50 ` sashiko-bot [this message]
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-248426@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