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=1796323811; b=PoCJVezLYJzawITU5vVFPNfxYqPBkV51Uo1SR+qw2VG7g5Aoqy8AAlzOJx6h0/k5I5td 7DOVoWRDZihoGNWryvUS8X8h9VD79uJ2K33zJ9bkpcMMl9FNqaggP/J70r9UWw25OoEOS Zx1a+/GRqR+b9f//J0Tg8agbTA8lgF4gqGA7MFY+kDMT3cwTlkbuxxdb1N4tMyFDh0tBA bFRVPHtg7Is3LhmT6Wa20BrzV1PRlTMRfYPTDRt1ajJTr4inY2YFUS8KX2a6Z4MAeC1pt Pnc6IoLixnfVpi/RPBGmfC3CMRSkmNfG9p9HrJn6jEf/ryamSjMlbSiGDxwHrWWbHWQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796323811; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=1VG6bDw953lcs7F2DMqbcJL5Sw5kjOOYQ2UV1Y8p5qE=; b=ijspoYreIDgffl8xW4l6hppiso3kDW0oNH9i0N3evH0trRs3paVCg1B2s7h1Jmjjsspk fr9n00ckSAEcJkZ9n4z9pVg0uD7YNMFprYgLRbkW9vRbqZwaJL6Q6jmBK2Lwk3uAzVow7 ZWn5JssmiWjkcXU5qWe/ZTdw6qpkuVsQHb+W5bzLaTy/b26rxQIPUnVseYJF31JyihjXC Z5Uno+N3t0hZn2E0kaGo3NWBS4eq8qifBMD+p00v5KNqKIhbD75q/kxnu2ISyS3ACfh8k 1NpLPqmjfQvZqcUB8dFGC/51wDNFGGtAI7yiMk+O3HFCDhTgVNJjWrC7xv1OK/IxDKg== 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=MsQWTZ7p; 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 9D21D606A322; Thu, 3 Dec 2026 18:50:11 +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=MsQWTZ7p Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13FFD1F000C1; Thu, 3 Dec 2026 18:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796323811; bh=1VG6bDw953lcs7F2DMqbcJL5Sw5kjOOYQ2UV1Y8p5qE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=MsQWTZ7p1KcJgp72o1ZPTr0Sffek7qmiq+9lRAzmRl6VvYq6S/4lRoJ256AvUblW4 +Cw+mP0OJUTT58P/Eax0OYiSR7N4Yv/PVC0x9sEFdEQlurE2Io4M86cKwVGfSPawcR xuVVa6pxhEca+z5UCUsVEE8UhFYV0a1Jw2QJnOBzGQhSiE25jMJ4uACL71cdHmE6kF hxocZbf6jNeh3lHx1nUEurieiBP/piPV5S1fksUq/B/kdtNGTTfZ76BYgVQ2iuleZE rFVtoiuY+Lp2xhAFWfCb2yXJ9RRpXh9ew2LrvShLMIuehVb+Q+a3IyQZ+zwuRzGeLy jFIANiaaAfa1g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 2/5] clk: stm32: Add STM32MP25 SYSCFG clock driver 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-2-76d65d1b811d@foss.st.com> References: <20261203-ups_mp25_clk_syscfg-v6-0-76d65d1b811d@foss.st.com> <20261203-ups_mp25_clk_syscfg-v6-2-76d65d1b811d@foss.st.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:50:10 +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 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 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. > =20 > +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=3Dy on a !HAS_IOMEM architecture such as ARCH=3Dum, 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 =3D { > + .get_parent =3D stm32mp25_syscfg_mux_get_parent, > + .set_parent =3D stm32mp25_syscfg_mux_set_parent, > + .determine_rate =3D clk_hw_determine_rate_no_reparent, > +}; [ ... ] > +static struct auxiliary_driver stm32mp25_syscfg_clk_driver =3D { > + .probe =3D stm32mp25_syscfg_clk_probe, > + .id_table =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-ups_mp25_c= lk_syscfg-v6-0-76d65d1b811d@foss.st.com?part=3D2