🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6026

Re: [PATCH net] net: emac: release DT PHY resources on teardown

#6026
From: Andrew Lunn
Date: Wed, 21 Oct 2026 13:58
26 lines
9481 bytes
On Tue, Oct 20, 2026 at 08:11:02PM -0700, Rosen Penev wrote:
> On Tue Oct 20, 2026 at 6:05 PM PDT, Andrew Lunn wrote:
> > On Tue, Oct 20, 2026 at 03:30:02PM -0700, Rosen Penev wrote:
> >> Disconnect PHYLIB PHYs and deregister fixed PHYs during both probe
> >> unwind and driver removal. Without this cleanup, unbinding a DT-based
> >> EMAC can leave its PHY attached to the freed netdev, while fixed-link
> >> instances retain their registered fixed PHY.
> >
> > This driver is quite convoluted with its PHY handling.
> I agree. I got this LLM to convert the whole thing to phylink. It tested
> a bunch of stuff over serial and ethernet, which works. That's net-next
> material though. It'll probably get rejected.

What is important here is you have the hardware and you have tested
it. That is better than most LLM generated patches which sometime
don't even build, and most of the time are never run on hardware
before submission.

If your patchset for phylink is up to mainline quality, post it.

We push back on LLM generated patches which are of obvious bad
quality. But we have no problems with good quality patches tested on
real hardware.

     Andrew
Technical Details
Message-ID: <51f35c9c-190c-4ac7-a3e0-c681068fecc9@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350043-linux-kernel-netdev=dewy.ru
References: <20261020223002.1749284-1-rosenp@gmail.com> <59c8f008-9ca0-4620-9a54-e73da131ab6c@lunn.ch> <DMA6QT4SYA41.3VGVOVAWYQMS6@gmail.com>

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-350043-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: emac: release DT PHY resources on teardown
Date: Wed, 21 Oct 2026 15:58:57 +0200
Organization: Usenet Network
Message-ID: <51f35c9c-190c-4ac7-a3e0-c681068fecc9@lunn.ch>
References: <20261020223002.1749284-1-rosenp@gmail.com>
 <59c8f008-9ca0-4620-9a54-e73da131ab6c@lunn.ch>
 <DMA6QT4SYA41.3VGVOVAWYQMS6@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="4162043"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6shn/XTI38Aj6sqUdexzqE8B1+c= sha256:ewVQOnRvxXrtQl9zilrudbj9aaW0WU+4zZREQxPwLns=
	sha1:iSc8NN4TmeOyuIZV1rf67KWRI7E= sha256:2UkneAa526Zey2h0RB2sEclesyFLao3l9KfNCcubZrQ=
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 AF1B911102C; Wed, 21 Oct 2026 17:06:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 db8gYyCzL45O;
	Wed, 21 Oct 2026 17:06:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350043-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id CC6D211102B; Wed, 21 Oct 2026 17:05:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 7D8DC48F6F; Wed, 21 Oct 2026 13:59:19 +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=1792591154;
	b=RC5p3WhgfXk1ixW+k3aq4XHBJUN+sB/p5xZgJC4j6/rAZfZhc6eVlk0MWgQLKcBPpZ2G
	 vN1BlfJ1L5xJoVkkrxd8E9P4SFQMNjet7+4UHVMfo5UA3pZIGmzOCyej6hDX/ZpKqXdBe
	 OCYC72ryoRZVq7TQ1b/asnbbTZKofJ2kpp/wejLFVKG7B+v5HPY9PiKlMcdloPGeDpICI
	 2z8maaAbPyiLfUj+PpJoElvkmWTuFXYWJQDlDFZjm6L+MDyyIPLIcF9kcOzU7KOiGDjPE
	 2RHaxcFQiz2w3/oSTYZLi/bDUW2saq4Q9AP9s77s5pHHBqpDiucVHZpFcUoG6Luy30w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792591154;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: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=CF7NxGfQqwUb06gUqk0YXRYtqxZmJkrr71gFRploMIo=;
	b=NXELc0TNbjGnZjoRMh7yx/EQcDYxOdtgQprePP4T6RV14Takkwu2oeTn6k6Cnm93jvN5
	 vKTGYx05mNRAv29M7CK4HjPqN4BTmDQfow0J8u6k4hL8lC8D7dozY9Ix3rgfzwTdulgIt
	 f5WkOGY45UKH2TYQv+jNf+SeGIiPjdA18BhwNJ//RuF0v+YVVfO+B8GVzGqWCYRjuh8tv
	 IFoK7P3kciCQAA2Sy1LkoNGO3iA2wpFfiwtwBQZFqrh9MD3fXi7sUS0oucvVzXHuqs5ZL
	 CEQUycfACCVhOiiNERuV3fTZunYI9Vny754pAmhrYWljY3Vb2cQmEykDGXo06KCGnMQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vto8D6lq;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 48E85606A326;
	Wed, 21 Oct 2026 13:59:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vto8D6lq
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792591148;
	b=mZ67h92lze5GkQ/HTYkTchQpz27H2TA1mzNNDPApdn38Gucc5wMUaJYp3NG8wA9HTxif
	 kabLzOVYgDoYUqNNNhzHE+qqsJn9WIbkVUUX95NQvcPESjb+yLLtGSqhSQCWhYi3rQWzA
	 3M3NuaoC66KXhaj8d1PbhiTdY4cp/+2FVmDinrEQrtZGt+W7B0QFBlv1AegM9xh3ESODt
	 1cRk2KCGsVLzH8QroSmPsKjEFhJxmn8rIxzbjphA5gHJP2+kxTvq2jLWI4E1MqtbYcers
	 p8NWFlYP8yRJHlwOTTGJ7hH5YQQx8R7zu3a8M3V6QnAfAOrX5i5Cgfp7v7LLL7w9HRg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792591148;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=CF7NxGfQqwUb06gUqk0YXRYtqxZmJkrr71gFRploMIo=;
	b=x9hilN6eTCI33UbZI9QhqcXBNBJpKol8k4k0tOj8STUxSywUgFWzNz4UHUsEUFYaxndH
	 /206+aHKvAb+vi81qmTl4gZurd1ZQ9ePwlV+fJriGBixJ4dYfrui4DYYffdBkif7rFCIg
	 DKKCRrkACvmGt1w6FE3y7PhpYEUSKbcKSEMfDE49oYXByhVGqFaYDO6MKp20k29kfK+No
	 pKirl00QBNuzJbgOgfGI/m2qXfJZUq3HPCzBrfj/nzCbXfc9pS8lqZFvvs/fcvCbYJwME
	 MuWPmpgeF6aMzKDTfuM+0PeaxrwoYGD4pO4qqneu86aFzNeE/9o5xZOhnLsAXj74RFQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vto8D6lq;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2137606A31B;
	Wed, 21 Oct 2026 13:59:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D2137606A31B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=CF7NxGfQqwUb06gUqk0YXRYtqxZmJkrr71gFRploMIo=; b=Vto8D6lqNg+NPFt78gCjRqpyju
	CEs6ABHzkAKT9YyuuBVfQdP7BIZzyvBzqgOJIlx5mX29sYYnybxNpCcagyfX7Ffhfkj5y5yH8dnd3
	mCvuVaGX4YNgSqC+Wwx4zIiO92saNqA51Cu0CNe+wQka38Qe0GQRT2gpO1D9czcOee3w=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xJWqH-00C5yL-QP; Wed, 21 Oct 2026 15:58:57 +0200
X-Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Christian Lamparter <chunkeey@googlemail.com>,
	open list <linux-kernel@vger.kernel.org>
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: <DMA6QT4SYA41.3VGVOVAWYQMS6@gmail.com>