linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1] clk: imx8mp: Alias M7 SRC/DIV to M7 CORE
@ 2022-12-07  8:10 LI Qingwu
  2022-12-09 18:27 ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: LI Qingwu @ 2022-12-07  8:10 UTC (permalink / raw)
  To: abelvesa, mturquette, sboyd, shawnguo, s.hauer, kernel, festevam,
	linux-imx, linux-clk, linux-arm-kernel, linux-kernel
  Cc: Qing-wu.Li, 18701859600

Defined IMX8MP_CLK_M7_SRC and IMX8MP_CLK_M7_DIV in imx8mp-clock.h
but never assigned. It will cause the system to hang if using it.
Alias IMX8MP_CLK_M7_SRC and IMX8MP_CLK_M7_DIV to IMX8MP_CLK_M7_CORE
for backward compatibility.

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
---
 drivers/clk/imx/clk-imx8mp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
index 652ae58c2735..bae5ecc81bdc 100644
--- a/drivers/clk/imx/clk-imx8mp.c
+++ b/drivers/clk/imx/clk-imx8mp.c
@@ -531,6 +531,9 @@ static int imx8mp_clocks_probe(struct platform_device *pdev)
 	hws[IMX8MP_CLK_HSIO_AXI] = imx8m_clk_hw_composite("hsio_axi", imx8mp_hsio_axi_sels, ccm_base + 0x8380);
 	hws[IMX8MP_CLK_MEDIA_ISP] = imx8m_clk_hw_composite("media_isp", imx8mp_media_isp_sels, ccm_base + 0x8400);
 
+	hws[IMX8MP_CLK_M7_SRC] = hws[IMX8MP_CLK_M7_CORE];
+	hws[IMX8MP_CLK_M7_DIV] = hws[IMX8MP_CLK_M7_CORE];
+
 	/* CORE SEL */
 	hws[IMX8MP_CLK_A53_CORE] = imx_clk_hw_mux2("arm_a53_core", ccm_base + 0x9880, 24, 1, imx8mp_a53_core_sels, ARRAY_SIZE(imx8mp_a53_core_sels));
 
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V1] clk: imx8mp: Alias M7 SRC/DIV to M7 CORE
  2022-12-07  8:10 [PATCH V1] clk: imx8mp: Alias M7 SRC/DIV to M7 CORE LI Qingwu
@ 2022-12-09 18:27 ` Stephen Boyd
  2022-12-12  5:05   ` LI Qingwu
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2022-12-09 18:27 UTC (permalink / raw)
  To: LI Qingwu, abelvesa, festevam, kernel, linux-arm-kernel,
	linux-clk, linux-imx, linux-kernel, mturquette, s.hauer, shawnguo
  Cc: Qing-wu.Li, 18701859600

Quoting LI Qingwu (2022-12-07 00:10:42)
> Defined IMX8MP_CLK_M7_SRC and IMX8MP_CLK_M7_DIV in imx8mp-clock.h
> but never assigned. It will cause the system to hang if using it.
> Alias IMX8MP_CLK_M7_SRC and IMX8MP_CLK_M7_DIV to IMX8MP_CLK_M7_CORE
> for backward compatibility.
> 
> Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>

Any Fixes tag?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH V1] clk: imx8mp: Alias M7 SRC/DIV to M7 CORE
  2022-12-09 18:27 ` Stephen Boyd
@ 2022-12-12  5:05   ` LI Qingwu
  0 siblings, 0 replies; 3+ messages in thread
From: LI Qingwu @ 2022-12-12  5:05 UTC (permalink / raw)
  To: Stephen Boyd, abelvesa@kernel.org, festevam@gmail.com,
	kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org,
	linux-clk@vger.kernel.org, linux-imx@nxp.com,
	linux-kernel@vger.kernel.org, mturquette@baylibre.com,
	s.hauer@pengutronix.de, shawnguo@kernel.org
  Cc: 18701859600@163.com



> -----Original Message-----
> From: Stephen Boyd <sboyd@kernel.org>
> Sent: Saturday, December 10, 2022 2:28 AM
> To: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>; abelvesa@kernel.org;
> festevam@gmail.com; kernel@pengutronix.de;
> linux-arm-kernel@lists.infradead.org; linux-clk@vger.kernel.org;
> linux-imx@nxp.com; linux-kernel@vger.kernel.org; mturquette@baylibre.com;
> s.hauer@pengutronix.de; shawnguo@kernel.org
> Cc: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>;
> 18701859600@163.com
> Subject: Re: [PATCH V1] clk: imx8mp: Alias M7 SRC/DIV to M7 CORE
> 
> Quoting LI Qingwu (2022-12-07 00:10:42)
> > Defined IMX8MP_CLK_M7_SRC and IMX8MP_CLK_M7_DIV in imx8mp-clock.h
> but
> > never assigned. It will cause the system to hang if using it.
> > Alias IMX8MP_CLK_M7_SRC and IMX8MP_CLK_M7_DIV to
> IMX8MP_CLK_M7_CORE
> > for backward compatibility.
> >
> > Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
> 
> Any Fixes tag?

Thanks, I will and Fixes in V2
Fixes: 8c83a8ff4dd9 (clk: imx8mp: use imx8m_clk_hw_composite_core to simplify code)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-12  5:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-07  8:10 [PATCH V1] clk: imx8mp: Alias M7 SRC/DIV to M7 CORE LI Qingwu
2022-12-09 18:27 ` Stephen Boyd
2022-12-12  5:05   ` LI Qingwu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).