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=1796004712; b=l4oYlBUbT4rq9xZhXCXwz6TPLlFn30wGMMlIDGnn8Gr9+1d4n/y7KxxcF6sPboTPtwbY PnnD5gYsdqm6P6v9R7jXJ5s9cNf9KsADHOQOfFB2AoWIUtWx6LrIz5yGthe3QUH9y/ii+ FTs0JUMUNtezqMDZcWBx9jfrNHZA+sGQEm2XwkJQvk2U2LGX5ZvMmDj4sXlCy9Y+S8Oq5 dbRuhhBQAKIgGvwZCQeAoQFRa1ackqniCzX/eR3m3j7XB4sBXOzwDHOs6BNb9t+zr5uRP qGF9BH0CJrwJhM8C+UlVC30+cuYo1V8A63TlkqeGmqJ9LW+uUZJgqOFauxkAyabItXg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796004712; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=AcwekO3bLFcZveHs2o4mdLDlmxSHAff3KNkq5yrvr1U=; b=ZaPtoXbbNPse+NVG4/5kme86+9jb3+s4fvkFRDV689y8905MlqMGat/8HvSre4waje2V KJR1YagiStPYalJDdkItRuR6zyvHrTDGFX+Vq0aDUcRbNxKSu0fke884i1fqCPBxqHwuI 11x8OtrFHYVt6WUhQIyBMIciC8qpKWZX72nTiem3SaaTgKpHsIDzgnEQ0IfDxqwrlZyuX JxTiJkl75CCXoZvibXYPmKRN8tu82RjqR/ZMxoa0FsiqKaahOdV60QoDCoxuVvPvEV5Zd h7nT7ngWcJaUCg6umQzRMqf4iEp0CIDiWHHtYCGYOky3S9d4jWvPPW3dZE6eYtYIw4A== 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=WJkj9rol; 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 C1AF5606A684; Mon, 30 Nov 2026 02:11:52 +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=WJkj9rol Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9946E1F00923; Mon, 30 Nov 2026 02:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796004712; bh=AcwekO3bLFcZveHs2o4mdLDlmxSHAff3KNkq5yrvr1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=WJkj9rol2PJttyRFsAuCvxQ3oSuMEqZEUNs71sGhyncQNhhnH+zQHOU358R0xwuDK 2IgMV4uGdBAF/FEcvNGH9it1x0E98sqsbeF3MGGTCe2ny31AxEYDq3R+9cmUTTISpO dgpEwE65cwU4qqeo3r2RJ7q3Hmcz/EWq3TiEFUeqYgwaU+oqtwwTcT+lrNWpbdEKNV XpmvV8Gzva5iZ55aS8GRsljzv8SEcg+MgcPfD2H60ZdghJ4wAxFC3Qt28FHa4jBf7X E7Yry13ML4EyWs1dirnHP//Li01wYN3dPz3yoVjzC/PjXGeWToibZZBYjn1Yp/dMTY UwF6SCU52S86Q== Date: Mon, 30 Nov 2026 03:11:49 +0100 From: Krzysztof Kozlowski To: Jiawen Liu Cc: Brian Masney , Abel Vesa , Fabio Estevam , Sascha Hauer , Frank Li , linux-arm-kernel@lists.infradead.org, Stephen Boyd , Jerome Brunet , Pengutronix Kernel Team , linux-clk@vger.kernel.org, imx@lists.linux.dev, Peng Fan Subject: Re: [PATCH] clk: imx31: Skip EMI enable if clock registration fails Message-ID: <20261130-helpful-amazing-groundhog-ddaefd@quoll> References: <179598034123.2.11447790855133926836.pattern-ext-122.19@gmail.com> X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <179598034123.2.11447790855133926836.pattern-ext-122.19@gmail.com> On Sun, 29 Nov 2026 19:25:33 +0000, Jiawen Liu wrote: > EMI gate registration can return an error pointer during early i.MX31 > device-tree clock initialization. imx_check_clocks() logs the failure, > then _mx31_clocks_init() passes the error pointer to clk_prepare_enable(). > clk_prepare() dereferences the pointer, which can fault before the > clock provider is published. > > Check the EMI slot with IS_ERR() before enabling it. Keep the > registration error in the onecell table for provider lookups and retain > the boot-time enable reference when registration succeeds. > > Statically traced both registration > paths and built clk-imx31.o with LLVM 19 using ARM imx_v6_v7_defconfig > with SMP disabled and i.MX31 enabled. git diff --check and checkpatch > passed. No runtime or hardware reproduction was performed. > > Fixes: 95878cbed895 ("ARM i.MX31: implement clocks using common clock framework") > Signed-off-by: Jiawen Liu > --- > drivers/clk/imx/clk-imx31.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > You sent multiple independent patches, to multiple independent subsystems. The amount of these patches clearly suggest this was AI generated and most likely not tested. More importantly, you sent all this work without properly organizing relevant patches into patchsets. This makes reviewing difficult and might cause multiple reviewers to address the same issue. Replying to the entire set is impossible and requires handling each patch independently, instead of applying or discarding the set. Maintainers also won't see the bigger picture of your work. Quite worrying. Please read kernel documentation BEFORE posting more work. It will explain you how to identify subsystems, how to organize your work per subsystem (so a patchset grouping multiple patches with a short cover letter), how to document the issue discovery method and what was or was not tested. Best regards, Krzysztof