Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: Jiawen Liu <liu1298662399@gmail.com>
Cc: Peng Fan <peng.fan@oss.nxp.com>, 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>,
	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: Re: [PATCH] clk: imx: Drop unnecessary i.MX50 IIM clock toggling
Date: Mon, 30 Nov 2026 10:12:01 +0800	[thread overview]
Message-ID: <20261130021202.109098-1-peng.fan@oss.nxp.com> (raw)
In-Reply-To: <179598034157.2.12985192856369003609.pattern-ext-123.20@gmail.com>

On Sun, 29 Nov 2026 19:25:33 +0000 Jiawen Liu <liu1298662399@gmail.com> wrote:

> 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]);
>  

This patch seems generated by LLM tools. Have you read the code? 

Regards
Peng


      parent reply	other threads:[~2026-11-30  2:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 19:25 [PATCH] clk: imx: Drop unnecessary i.MX50 IIM clock toggling Jiawen Liu
2026-11-30  2:11 ` Krzysztof Kozlowski
2026-11-30  2:12 ` Peng Fan (OSS) [this message]

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=20261130021202.109098-1-peng.fan@oss.nxp.com \
    --to=peng.fan@oss.nxp.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=liu1298662399@gmail.com \
    --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