🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10299

Re: [PATCH] net: dsa: microchip: drop the parent MDIO bus reference

#10299
From: Krzysztof Kozlowski
Date: Tue, 03 Nov 2026 10:25
62 lines
10293 bytes
On Tue, 03 Nov 2026 10:05:31 +0000, Wentao Liang wrote:
> ksz_mdio_register() obtains the parent MDIO bus with of_mdio_find_bus(),
> which takes a reference on the embedded struct device, and stores it in
> dev->parent_mdio_bus for the side MDIO accessors.  Nothing ever drops
> that reference, so it is leaked on the probe error paths and when the
> switch device is torn down.
> 
> Register a devres action to put the device when the DSA switch device
> is released.  The child MDIO bus is unregistered before the action
> runs, so the parent bus stays valid for the whole lifetime of the
> switch.
> 
> Fixes: 9afaf0eec2ab ("net: dsa: microchip: Refactor MDIO handling for side MDIO access")
> Cc: stable@vger.kernel.org
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
> ---
>  drivers/net/dsa/microchip/ksz_common.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 



Multiple things here:
1. Your team ignored completely previous feedback. Multiple times.

2. You use multiple identities with this email address, thus I doubt that we
   speak with an actual person.

3. Your bot does not even bother running checkpatch, right?

4. Nothing of this was reproduced nor tested.

5. Finally, the same feedback:
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.

This is on the verge of hostile patch: bomb us with so many
contributions, we won't be able to handle them in efficient manner,
like responding ONCE to ask you to slow down.  Considering all this
is untested and LLM generated, I have even more doubts whether this
should be considered for review.

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
Technical Details
Message-ID: <20261103-fierce-handsome-bullfinch-df2e70@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355418-linux-kernel-netdev=dewy.ru
References: <20261103100531.1309946-1-vulab@iscas.ac.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355418-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: dsa: microchip: drop the parent MDIO bus reference
Date: Tue, 3 Nov 2026 11:25:48 +0100
Organization: Usenet Network
Message-ID: <20261103-fierce-handsome-bullfinch-df2e70@quoll>
References: <20261103100531.1309946-1-vulab@iscas.ac.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3158714"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:w+6B2fyz273MnQvrvp8xrKXdDK0= sha256:pfm32cikDV8d8aKYEgQFQQQu/6IvywNePgiFFnTl9CA=
	sha1:I9b7Sl2TqgmxSnUAVZeBqoK1HFM= sha256:IrKCNLHDPzGlmibccK6j871jnVZmAdxBKiHoMn7jd6c=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 6551611284C; Tue,  3 Nov 2026 14:55:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id K5eIgVXhAaag;
	Tue,  3 Nov 2026 14:54:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-355418-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 611E61127C8; Tue,  3 Nov 2026 14:54:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 132C147B49; Tue,  3 Nov 2026 10:29:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793701552;
	b=MX4Uf0qn7iRcjL5cMMMJev4V2TGFzr4RTvGH4n5575LKz8ozRN1WKd/ELmi8ISD6ObbU
	 BWrFJfWadC1mTR4uPi2OV9KHEBavibxUDX5+Rfvl70hQzDcXHivUOVdHuDWk8Zv1vaE7/
	 cqw1XgQlK0PykK98cWfdKrk3cVSlKacpUtVa/dsVtyqc9k9pHfnjzJgOibQsxMtM5T9ia
	 BZiRW4V3BAegR1N7sV5MUpDb2bZ38ONVcXDLhGJMe6yv4tSb2gtpbgrLQbEOMNNcjCQsX
	 Ojujp5DeQO1CQDCKZ49jKMu1UeBWHvffFZTZcHwzIDugmrPS6qj58r7nJjBWO8GaeIQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793701552;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=ZiDCgXI7NCcafNDZdpmexImXqmfoIhQjo1qsG0Dzdno=;
	b=v8Lr8kvOZmZfJn/0ryTk3WGZ64fFYOcthswEnqDji7On53BX5jbN9XUw327uUgXnjdxl
	 hXf6ftVdXnqeAL+Z9b1VDqmfaoFs1bPpsaZTLA8v8dwKu86jDWjZkZZgvrW9uj0VFL6s2
	 Ani6wOTToEUa3tEIsOgSa4q8xxvYHWZ8v0cd01Ni61IpG/nFyVsmJSGkvFY1QqT4aadnE
	 J5oxZUyMFGZ9dJO5KOOHwmKmH9JdTIU/D8hdA04ePu7diMr1YBuOt12S3w/Jp2ms9limv
	 zknkogb/zDbLqd3PWvXVgnvEuEO6/RqKvpvMdag3d9/6CQnYb1zc2THIDeVpL1s/LMA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=P2ys5KTF;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 426D7606C544;
	Tue,  3 Nov 2026 10:25:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=P2ys5KTF
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793701551;
	b=gCUdXNH8wcQEAX9nYHmKZpGXVbP9V6ZrRvQAP7jtZNQql3LhbnCFrom1UP4gmJWYdCwK
	 REAJUZQDo8XSkfjj+6T3uI9cfbJ0UtJ2XaOxU6VCIespBb5PjUUhySQ2bbNtbsdneynzg
	 jzEzKe2xL3AlpLi2zCM3HmZiNUJKOa55L79RsbuT3xEL8aIyPjTcv0gcOZsMpK66TyHMa
	 ArUUptzY2S4nF3W20qA44P4omoX1l7w9eEZ8pDl+cul7lZqW5KpkG5cs+9f7u0FHjtpiZ
	 AorlEpP2qUH6E79LYoMYduTBwkCqHNgw0x9Gjqnk9qmIH2oq26FIwTVNIZj/4tvhKMQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793701551;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=ZiDCgXI7NCcafNDZdpmexImXqmfoIhQjo1qsG0Dzdno=;
	b=RBomrJL2yOqQBxQjwUwrR6JMqLdxiunURTXwktFZFjT4pXezPVA+QXOGRrs5ea3AMVPj
	 sJx2CnUlUZ98DA/fqOQcvbmH7OjacnjU6w945JMpSm0EMAk3Om/K2lUtKCMAF4tPVBPR4
	 13G+IiOAxTo2OhvhBMEKcjKrRtIhe30VHyFLB8ZLlkgGiSj7CoJgveAtqcuge8oP2Cevu
	 66wfmzZ242tdvBP8JjksAhYhDBMgm7vcTqLf3ZGdOSStb+IxMqg4OazJN7gupPZDGEvOP
	 jMRITfJEBVJCqY5yOuHy3p264dRKabAqcS6oQ/UXznpbdnxwo1879KeXqN81yCcAAdg==
X-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=P2ys5KTF;
	arc=none smtp.remote-ip=100.103.45.18
X-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 044F7606BFBE;
	Tue,  3 Nov 2026 10:25:50 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2B7C1F00919;
	Tue,  3 Nov 2026 10:25:49 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793701550;
	bh=ZiDCgXI7NCcafNDZdpmexImXqmfoIhQjo1qsG0Dzdno=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=P2ys5KTFDKlK2yz+di5tTpouQWufDnbAzeDL0y73Y8bo6Vq/QZlfXVuupyaysdggh
	 4NayCQ7NJSPvtrGE04mH2FlToF+upZ6TKd0EYS4gPYHNeEcks0CnlApEVMxsul4Rbg
	 MyBoPta3v3IxvYCLUszqczCpOkDqkLjuGVoXY0smnWu+KUuus377BrZJSSYQWLVRfI
	 nogofXJZsSsdRPuy8tdiDjE7AK1b4slU4ScVK36NghcZ2kTbrfcr8hO7SKkz+NpkD+
	 YQ2cWGlUXcxM96zNAbTnkw+6eAXNyr2hW2vq9Lw0pblA49db0ND0CCHAEZa/AXzP2g
	 APRHTINuxC2mA==
X-Cc: Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 
	"David S. Miller" <davem@davemloft.net>, Woojung Huh <woojung.huh@microchip.com>, 
	Vladimir Oltean <olteanv@gmail.com>, linux-kernel@vger.kernel.org, stable@vger.kernel.org, 
	netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>, Andrew Lunn <andrew@lunn.ch>, 
	UNGLinuxDriver@microchip.com
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261103100531.1309946-1-vulab@iscas.ac.cn>