From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 125CD606A31D for ; Mon, 30 Nov 2026 02:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=159fylJT; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WJkj9rol DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=AcwekO3bLFcZveHs2o4mdLDlmxSHAff3KNkq5yrvr1U=; b=159fylJTYv3MUNbCn+cfuCQo7F BwhCXaHaKG0dL/NY5PGuyCG/+Y4RQDCuflH5mnPFP7lOm1y+x+9AxIC+wADL5SI0DMeIk4McYDikS ZpzZmTEHuD0XvrGOzOzAAykeaUAX5ApwCPy4Aa1W7SMbuzI4UD2nAbAroYx+eIA+9ne1wNvhhyOC7 N74zPpql3RAjL/p2LfNbXFJ+anl9dPCmwS6ugEfNkZX1BnTT0r6Y4R9ckVPhf200/yf94LZW0sImC Rb52GxSwgyixMkRPnCGw+1Kgb62QTFuX72tFyPTUabjWYK52esiu0UN9Mtnb+em7IaJZ9sBKpaY2Z 18YpE9qA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXqry-00000002vBo-0482; Mon, 30 Nov 2026 02:11:54 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXqrw-00000002vAJ-3OIA for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 02:11:52 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 90A55447D0; Mon, 30 Nov 2026 02:11:52 +0000 (UTC) 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-Archived-By: 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> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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