mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
To: Jiawen Liu <liu1298662399@gmail.com>, linux-pm@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Ulf Hansson <ulfh@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Krzysztof Kozlowski <krzk@kernel.org>
Subject: Re: [PATCH] pmdomain: mediatek: mfg: Handle MT8196 EB clock enable errors
Date: Mon, 30 Nov 2026 15:02:05 +0100	[thread overview]
Message-ID: <W4iB1xBkSaKt5c7jvaHFlQ@collabora.com> (raw)
In-Reply-To: <20261130-glorious-lemur-of-resistance-2eabd1@quoll>

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 <liu1298662399@gmail.com>
> > ---
> >  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
> 
> 
> 
> 
> 





      reply	other threads:[~2026-11-30 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 19:25 Jiawen Liu
2026-11-30  2:11 ` Krzysztof Kozlowski
2026-11-30 14:02   ` Nicolas Frattaroli [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=W4iB1xBkSaKt5c7jvaHFlQ@collabora.com \
    --to=nicolas.frattaroli@collabora.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=liu1298662399@gmail.com \
    --cc=matthias.bgg@gmail.com \
    --cc=ulfh@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

all inboxes | Powered by JetHome®