🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22092

Re: [PATCH net-next v3] net: phy: marvell: add support for PHY LEDs polarity modes

#22092
From: Andrew Lunn
Date: Tue, 24 Nov 2026 21:21
31 lines
9789 bytes
On Tue, Nov 24, 2026 at 09:08:13PM +0100, Aleksander Jan Bajkowski wrote:
> Hi Andrew
> 
> On 22/11/2026 22:55, Andrew Lunn wrote:
> > On Sun, Nov 22, 2026 at 10:28:55PM +0100, Aleksander Jan Bajkowski wrote:
> > > Keep the LED polarization settings and restore them after a hardware
> > > reset. This modification is actually only necessary on devices with a
> > > wired PHY reset line and a driver that resets the PHY during the
> > > link-up/link-down events. I found a single DTS file in OpenWRT
> > > (armada-385-fortinet-fg-5xe.dtsi) that matches this hardware configuration.
> > Mainline does not really care about OpenWRT. However, why does
> > armada-385-fortinet-fg-5xe.dtsi do this? Is it because of an errata in
> > the PHY? Such an errata we might care about.
> 
> This is not an errata. This is a direct response to sashiko's report[1]:
> 
> Take a board with a PHY reset GPIO and a MAC driver that connects the PHY
> in ndo_open and disconnects it in ndo_stop. Wouldn't each "ip link set
> down" followed by "ip link set up" put the LED pins back to their reset
> default polarity and drive state?
> 
> This is actually a widespread  issue. PHYs from various vendors restore the
> default state of the registers after a hardware reset. Phylink does not
> restore triggers later.

O.K. You are correct, this is a widespread issue. So no need to solve
it for one device, it needs a solution for all devices, if anybody
actually cares.

	 Andrew
Technical Details
Message-ID: <c85c4a02-6aa1-443e-a1ec-25c471552968@lunn.ch>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370769-linux-kernel-netdev=dewy.ru
References: <20261122213034.548858-1-olek2@wp.pl> <992ef2e7-4334-4b0e-b1ea-5ac1360fefea@lunn.ch> <4dd66fbe-4528-4e88-91d4-87e147aa71cd@wp.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370769-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3] net: phy: marvell: add support for PHY LEDs
 polarity modes
Date: Tue, 24 Nov 2026 22:21:24 +0100
Organization: Usenet Network
Message-ID: <c85c4a02-6aa1-443e-a1ec-25c471552968@lunn.ch>
References: <20261122213034.548858-1-olek2@wp.pl>
 <992ef2e7-4334-4b0e-b1ea-5ac1360fefea@lunn.ch>
 <4dd66fbe-4528-4e88-91d4-87e147aa71cd@wp.pl>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="41359"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:h2QNjkpOwhMGZ2WcvHxaYgA3dzQ= sha256:PGfBzQ1SpZDz+OqEdCzGhiNcLhO24S3APip9GzG4obA=
	sha1:yZIx+JiVXJVq8IIr3bh8k+lolNw= sha256:xKYc74basGs3WyFcqZl6xx3SVf6a+yYgS1x2VcGMGlw=
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 E1894125E33; Wed, 25 Nov 2026 00:21:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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.249,
	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 (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 i75LQAxS9VBK;
	Wed, 25 Nov 2026 00:21:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370769-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 76FB8125E2F; Wed, 25 Nov 2026 00:21:38 +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 4D2BE31DFB; Tue, 24 Nov 2026 21:21:35 +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=1795555294;
	b=yniSAUQD37GsFA7PcOY/47lDEvk4NCKLrAaoW03c/Amxpz5ZuNCBv8upYIyGwAqzON+d
	 0m+TD3WNYjypQT0CrhJAvZJ1nuU/5NYk/5URR+lr6DMgSSvXact/Nhiq4Pksp6Arb0jyv
	 sSwJvJf1nV8gGUev0JRQpRf1yJyAq2P0lyrr06Qcyhxg5PT4oU4XXEYcYRw9ByBEmkMzW
	 5yXu03OsADWARVbxnvUEbLET5bS8/dEnOwj2yxKjr3i3y2pSnw3DcB7PmyHWYek/WUaBB
	 QAEMRKRxEWHIp81fz6uOaUItEY8vBmVaiL/HHeYWnsCAtgqd3+HFBi3uhAP40EKC+gw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795555294;
	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:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=QjfkThTVl0FcSsf2Lc31oCBWFvyyt1eUEEqDr61B9T4=;
	b=fJPy+GCPQENyYe5uD1AyqJ8Rwtoy50eRzPCvV8HAklPcjm0TBlVjMYHAK/VqB5dLdO2q
	 JjUnbtcjU4PqDnUn8+vRzS0JdV7zuy1JCp84+kIDC5V6BjJ/XQz8hqxBKuBzoML7tE0p3
	 u95BL0ywv8maP4CVQ8D0Pkwk4hqWzOjQlQ312TcDmOsdcURYGSETMbGdG9R8w8PA+rT3c
	 EjE9V24gUdTBoS0LatnE0oWzUO7rI4/KT6SzSgq6jsqPi3tZj7HLLji1RXAxTY+FXh3bk
	 DSOONZoxJe2bxl8VlRSj2deFGFAx8N+WSxSzNYnr6cwZC6XOtde6K6cPscZ/cFEd9YQ==
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=rg2O3xaN;
	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 9412C606A32A;
	Tue, 24 Nov 2026 21:21:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=rg2O3xaN
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=1795555293;
	b=dN6EZXa1Q7674ISLKc0UgLr82q/PmGqB5tNx/My+AsDzAqv0aqgQ15kFZxGoGRW9edrA
	 y9uRnyVQQfvjVnkynboLWwNc3Ud4tmrXPT8/QUW3J8WlSmEYIaXiq7z6zDOMa1YJUyFfn
	 brxGIzakYOgL8iojYzKbtL6zyUe4ghvuV+E4DSFUlYp4ZcXIC43e3YnRSi3IRBlJWs7CB
	 RKiyJeZoEQTZKzgu7Llo+iC830CVA7zmy9M1v8Okynts6eH8R4KUCqncVDjkoSl0cC9By
	 Elt2Qt+fQhZHrrP4brY06LdiyL2qDPjTZz4q6Js4BU/isBnkQPD3UI/qhPgiWME89FQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795555293;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=QjfkThTVl0FcSsf2Lc31oCBWFvyyt1eUEEqDr61B9T4=;
	b=bBXIXRPWztx7Gz+RIkguYg04dJCGv1U7kGM+BuK5j+zeMHpQVmO+1QMrUMVD9B1v2Rwp
	 v4eJZbvTZGo8vCyU3uUmU8A4iO7AZdj189oXU9bdCuzNNDdNHDIbitT/18+VPENT6ShUS
	 PT0qMLhXGnbGTad750Y1MUy003NvJ/M65cXLUbak6u8NYeG+IextLwJwri7ViMhx/oS34
	 wBfiHnkoEVdnbAL26Pdltppdj2nhgit1tWXCsmgufghjGvZqa/4qKIGU1BNKmukj6kY3N
	 aERNt3mlCn6cEIAN2of6z2VNFbxWWNBAoiZeKWcuQME6NVORPaiWfTFxQMOcruqaFTw==
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=rg2O3xaN;
	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 6C4C0606A31E
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 21:21:33 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C4C0606A31E
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-Transfer-Encoding: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=QjfkThTVl0FcSsf2Lc31oCBWFvyyt1eUEEqDr61B9T4=; b=rg
	2O3xaNJNH9NAhr/eEflLk6/OyZYbZRfwBQmuvcDLXFy9bYc8vshq4ms2RUHBDm5vda6hEqYjhVzcD
	YM12+yvHbJlEpSvC4WpS74EKiw7GbqxbFXdv5zUXJGi3VjMFKv1dXzNjjmStI6xVlaALyH1sbgInD
	hNQBcXkmFdKPOnU=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xVxx6-001AN4-DZ; Tue, 24 Nov 2026 22:21:24 +0100
X-Cc: skyline@mail.ru, hkallweit1@gmail.com, linux@armlinux.org.uk,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, netdev@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: <4dd66fbe-4528-4e88-91d4-87e147aa71cd@wp.pl>