From: Jiawen Liu <liu1298662399@gmail.com>
To: Abel Vesa <abelvesa@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>
Cc: Peng Fan <peng.fan@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
linux-clk@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: imx: Drop unnecessary i.MX50 IIM clock toggling
Date: Sun, 29 Nov 2026 19:25:33 +0000 [thread overview]
Message-ID: <179598034157.2.12985192856369003609.pattern-ext-123.20@gmail.com> (raw)
During early boot, mx50_clocks_init() prepares and enables the IIM gate
to print a fixed silicon revision. If IIM gate registration fails,
imx_check_clocks() logs the error and initialization continues.
clk_prepare() then dereferences the error pointer. If preparation of a
valid gate fails, clk_disable_unprepare() still runs and can warn about
missing enable and prepare references.
Drop both IIM clock calls. The revision helper only prints its
arguments, so it can log the fixed revision without the IIM clock.
Verified by source and diff review,
checkpatch, and an ARM imx_v6_v7_defconfig build of clk-imx5.o.
Runtime or hardware reproduction was not performed.
Fixes: 7a9cc1ad213d ("ARM: imx: add clocking support code for the IMX50 SoC")
Signed-off-by: Jiawen Liu <liu1298662399@gmail.com>
---
drivers/clk/imx/clk-imx5.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c
index 9c5f489b3975d..a012971e6dee7 100644
--- a/drivers/clk/imx/clk-imx5.c
+++ b/drivers/clk/imx/clk-imx5.c
@@ -351,9 +351,7 @@ static void __init mx50_clocks_init(struct device_node *np)
clk_set_rate(clk[IMX5_CLK_ESDHC_A_PODF], 200000000);
clk_set_rate(clk[IMX5_CLK_ESDHC_B_PODF], 200000000);
- clk_prepare_enable(clk[IMX5_CLK_IIM_GATE]);
imx_print_silicon_rev("i.MX50", IMX_CHIP_REVISION_1_1);
- clk_disable_unprepare(clk[IMX5_CLK_IIM_GATE]);
r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000);
clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r);
--
2.34.1
reply other threads:[~2026-11-29 19:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179598034157.2.12985192856369003609.pattern-ext-123.20@gmail.com \
--to=liu1298662399@gmail.com \
--cc=Frank.Li@nxp.com \
--cc=abelvesa@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=jbrunet+clk@baylibre.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=sboyd@kernel.org \
/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