linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()
@ 2025-04-23 15:51 Hiago De Franco
  2025-04-23 17:14 ` Mathieu Poirier
  0 siblings, 1 reply; 11+ messages in thread
From: Hiago De Franco @ 2025-04-23 15:51 UTC (permalink / raw)
  To: linux-remoteproc
  Cc: Bjorn Andersson, Mathieu Poirier, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, imx, linux-arm-kernel,
	linux-kernel, Hiago De Franco

From: Hiago De Franco <hiago.franco@toradex.com>

The "clocks" device tree property is not mandatory, and if not provided
Linux will shut down the remote processor power domain during boot if it
is not present, even if it is running (e.g. it was started by U-Boot's
bootaux command).

Use the optional devm_clk_get instead.

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
---
 drivers/remoteproc/imx_rproc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
index 74299af1d7f1..45b5b23980ec 100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -1033,7 +1033,7 @@ static int imx_rproc_clk_enable(struct imx_rproc *priv)
 	if (dcfg->method == IMX_RPROC_NONE)
 		return 0;
 
-	priv->clk = devm_clk_get(dev, NULL);
+	priv->clk = devm_clk_get_optional(dev, NULL);
 	if (IS_ERR(priv->clk)) {
 		dev_err(dev, "Failed to get clock\n");
 		return PTR_ERR(priv->clk);
-- 
2.39.5



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

end of thread, other threads:[~2025-04-30 17:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 15:51 [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional() Hiago De Franco
2025-04-23 17:14 ` Mathieu Poirier
2025-04-23 19:21   ` Hiago De Franco
2025-04-25 15:45     ` Mathieu Poirier
2025-04-26 13:49     ` Peng Fan
2025-04-26 21:47       ` Mathieu Poirier
2025-04-27  2:08         ` Peng Fan
2025-04-28 14:10           ` Hiago De Franco
2025-04-28 17:12       ` Hiago De Franco
2025-04-30  6:08         ` Peng Fan
2025-04-30 17:52           ` Hiago De Franco

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).