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 81FEA606A31C for ; Mon, 30 Nov 2026 14:02:28 +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=NAQ0AuUn; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=jud1nJgm 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:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=THjcusyI3zcSNIocW/EePSHbZrOiLLsLzK4x3y5/l3o=; b=NAQ0AuUnaX3ue6u6p7HIRGo0s4 3SoL8uPWb/tBkvntS4iZAw89bxpLxd1AzgzNHbUWrDD63HzNvUo0vy3kjCfroCJypYnxVGK0SJd4Y 3SsHn9RDSr8PmuH7QPsEWknA7yB6pAI7L1AVeD4y4aHFpeyfr1Nijz+Lja0oFjVGMHJW8JqjkvTBH x+HrsXR2bm4mqXHHCX2HoKLs+D338HS5rd6SBsup9PtSD9fFEZg6S8MLCG+381FNW3D0/vzOERadF 67fVzzpz4zCw0h6O1xhSGL0InaMn1UravW09N7vybA21XsslvyBPuOFtQeTi0hwWFp+ziYM6nGdhh qTceKLgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1xc-00000004p4U-0ySA; Mon, 30 Nov 2026 14:02:28 +0000 Received: from sender6-pp-f112.zoho.com ([165.173.180.112]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1xZ-00000004p3z-0rte; Mon, 30 Nov 2026 14:02:26 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1796047336; cv=none; d=zohomail.com; s=zohoarc; b=eBGgQ9zqIvWYQkg8BnG4GXcXHPeo9b4C0A8cudhJjdVy17eYYvLB25zX8FYG2zSQiRW+xkgUBZwPO4xgEVI09rDVrxcXjA9sQFYKOV8lR/4y+hLhpw0CbITelWfw9y5vlw0/FWZXgXloUmivSeTU4L8rCqINgLxZn3heT1tBimM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796047336; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=THjcusyI3zcSNIocW/EePSHbZrOiLLsLzK4x3y5/l3o=; b=K3KYjg8hyHMvrS67z8uoxgr9xIpkx9dxuUM4mbzblrBBIu2+mYKIlGPAjtbDtdZxU4PwLtZPhgqeiAGUQMpqMRBdryK2Toboq1o7ZDtdO1gDD+Vt8FZjgSAMR8v8QWqUEeqZX0/IMgeg+VpNdmLjqQoPKL1w0RwrdYDU9F1O6vc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=jud1nJgmZGJhukpHSdIo7KUzwEgiN/anJREwIb9S6GjbNu2MMEZoxgIX1vjCu5VAnpRLNbLB7ADsvrzCHxDUwGh+Ld8CNpQcaus4ttrayEtyCt68rOMUSXFlzIC+Mhx4zCdMkxAuI6KSPEsvDFsjuaPx8OeERia+Ch4R7FuUsaU=; c=relaxed/relaxed; s=zohomail; d=collabora.com; v=1; bh=THjcusyI3zcSNIocW/EePSHbZrOiLLsLzK4x3y5/l3o=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1796047331557922.285216659971; Mon, 30 Nov 2026 06:02:11 -0800 (PST) From: Nicolas Frattaroli To: Jiawen Liu , linux-pm@vger.kernel.org Cc: linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ulf Hansson , Matthias Brugger , Krzysztof Kozlowski Subject: Re: [PATCH] pmdomain: mediatek: mfg: Handle MT8196 EB clock enable errors Date: Mon, 30 Nov 2026 15:02:05 +0100 Message-ID: In-Reply-To: <20261130-glorious-lemur-of-resistance-2eabd1@quoll> References: <179598033854.2.10041105705350334400.pattern-ext-091.12@gmail.com> <20261130-glorious-lemur-of-resistance-2eabd1@quoll> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_060225_320346_0985665C X-CRM114-Status: GOOD ( 25.73 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 Monday, 30 November 2026 03:11:49 Central European Standard Time Krzysztof Kozlowski wrote: > > On Sun, 29 Nov 2026 19:25:33 +0000, Jiawen Liu wrote: > > The MT8196 variant can fail to prepare the EB clock if its provider is > > removed after lookup and no managed device link serializes removal > > with probe. mtk_mfg_mt8196_init() ignores the error and reads the > > revision register without acquiring a clock reference. If the read > > returns, the unmatched release can trigger the clock framework's > > already-disabled and already-unprepared warnings when the respective > > counts are zero. Variant initialization then reports success. > > > > Return the clock error before reading the revision register. The > > existing dev_err_probe() path reports and propagates the error. After > > a successful clock enable, release the temporary clock reference after the > > read. > > > > Static review verified the error > > and success paths, and the driver object built with arm64 defconfig. > > git diff --check and checkpatch.pl passed. Runtime and hardware > > reproduction were not performed. > > > > Fixes: f08e7a4e8d6a ("pmdomain: mediatek: Add support for MFlexGraphics") > > Signed-off-by: Jiawen Liu > > --- > > drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c | 5 ++++- > > 1 file changed, 4 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. The one patch of theirs I did review did end up being nonsense, so yes you're spot on in your assessment I think: https://lore.kernel.org/linux-arm-kernel/LUJ0Hv_lSZ-inrMBSS0Lrw@collabora.com/ This patch has a higher chance of being real (the HW id reading function is the first time the clock is enabled, so ignoring an error here could be unpleasant) but I also don't think people like this should get the credit. Plus, > >After a successful clock enable, release the temporary clock reference > >after the read. is complete nonsense. This is already done and the patch changes nothing here, and this isn't a "clock reference". Kind regards Nicolas Frattaroli > > 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 > > > > >