From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.112 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796047354; b=EK/f7oZvFOAfuNSfMfVvG2AwfnW3OhDA34uF5p1rmdth9h7+/MXKVO5ZDwhiBRGRfeRD QLIchnxugXk2oY2CCD4PlZIL9KBL6zwo6u8BPXi/9ET2V1nFkaAAMvFigYJz0F32OYZKI D6x1ZTtcd98y5uKsf8ScqJyijGVUXpkuthfTAkOOlO/yzzSNUSgEj4NC63q4Lw6jFc/nN CUK6WPPm+z5rBtDDiE9Po6hZiaKPagfy5kMn/utzVN+BIpOvyfrdsr+R5Iz37SYHhYaW6 pKMInarnWUWJ0aHdB/0/IYCAb9LchDKK2ojfZvfvCUDikup72MZyziInNK/Uq9h9dUQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047354; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=THjcusyI3zcSNIocW/EePSHbZrOiLLsLzK4x3y5/l3o=; b=qk2Bo6456lk22ihRA3Y+J/36zTxYvJJJH/lykn2gI79htrR0X31jIJEzcTfgRbJ48xq3 3wXEpOODtBKInrzUHJ4htgxtcVL9Y8d9/2F0yql4HkbMLJAWwa6iZou7E6kn00d0AVuH/ jwHtOTJo347rnzTpEgUBSBn3B3kZ8I2MKP5DIt4FEI8vBVywLVLD0/h5M+Gokqb7mw4Nq x06puCavdDancb1fC+XOyedMVO6xUyJ6f/W7yYp3NghTaKNCE1l8JwxC4PuBMUGeJDKMT ziUGKN/rrq6GS0tkexqPvAgxxtRlGnfazqeVayd/Csuv4gvttl0eaqc669uIXToxteg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=jud1nJgm; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.112 Received: from sender6-pp-f112.zoho.com (sender6-pp-f112.zoho.com [165.173.180.112]) (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 87D35606A325; Mon, 30 Nov 2026 14:02:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 87D35606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=jud1nJgm 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-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" 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 > > > > >