🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25311

Re: [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826

#25311
From: Andrew Lunn
Date: Tue, 01 Dec 2026 13:47
56 lines
10535 bytes
On Tue, Dec 01, 2026 at 09:24:12AM +0100, Maxime Chevallier wrote:
> Hi,
> 
> On 12/1/26 07:49, Jie Gu wrote:
> > From: Jie Gu <jie.gu@leica-geosystems.com.cn>
> > 
> 
> I have a few questions about the technology itself, to see if this is
> the right API for that.
> 
> > The DP83826 supports Active Sleep, a link-down power-saving mode that
> > periodically transmits normal link pulses to detect a link partner.
> > Expose this mode through the ethtool energy-detect power-down tunable.
> 
> Is this something standard that other PHYs could potentially implement
> too ?

adin.c:			*tx_interval = ETHTOOL_PHY_EDPD_DFLT_TX_MSECS;
adin.c:			*tx_interval = ETHTOOL_PHY_EDPD_NO_TX;
adin.c:		*tx_interval = ETHTOOL_PHY_EDPD_DISABLE;
adin.c:	if (tx_interval == ETHTOOL_PHY_EDPD_DISABLE)
adin.c:	case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS:
adin.c:	case ETHTOOL_PHY_EDPD_NO_TX:
adin.c:	case ETHTOOL_PHY_EDPD:
adin.c:	case ETHTOOL_PHY_EDPD:
adin.c:	rc = adin_set_edpd(phydev, ETHTOOL_PHY_EDPD_DFLT_TX_MSECS);
bcm54140.c:		*tx_interval = ETHTOOL_PHY_EDPD_DISABLE;
bcm54140.c:	if (tx_interval == ETHTOOL_PHY_EDPD_DISABLE)
bcm54140.c:	case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS:
bcm54140.c:	case ETHTOOL_PHY_EDPD_DISABLE:
bcm54140.c:	case ETHTOOL_PHY_EDPD:
bcm54140.c:	case ETHTOOL_PHY_EDPD:
marvell10g.c:		*edpd = ETHTOOL_PHY_EDPD_NO_TX;
marvell10g.c:		*edpd = ETHTOOL_PHY_EDPD_DISABLE;
marvell10g.c:	case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS:
marvell10g.c:	case ETHTOOL_PHY_EDPD_NO_TX:
marvell10g.c:	case ETHTOOL_PHY_EDPD_DISABLE:
marvell10g.c:	err = mv3310_set_edpd(phydev, ETHTOOL_PHY_EDPD_DFLT_TX_MSECS);
marvell10g.c:	case ETHTOOL_PHY_EDPD:
marvell10g.c:	case ETHTOOL_PHY_EDPD:
smsc.c:		*edpd = ETHTOOL_PHY_EDPD_DISABLE;
smsc.c:		*edpd = ETHTOOL_PHY_EDPD_NO_TX;
smsc.c:	case ETHTOOL_PHY_EDPD_DISABLE:
smsc.c:	case ETHTOOL_PHY_EDPD_NO_TX:
smsc.c:	case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS:
smsc.c:	case ETHTOOL_PHY_EDPD:
smsc.c:	case ETHTOOL_PHY_EDPD:

This patch is just wiring up an existing API for this device.

I'm not sure it is part of 802.3, but vendors implement it about the
same, because there is not much you can do differently and have it
still work.

    Andrew
Technical Details
Message-ID: <36f6f4aa-dc85-46f5-aa2a-6f0251b737db@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-375129-linux-kernel-netdev=dewy.ru
References: <20261201064909.2698827-1-jie.gu@leica-geosystems.com> <96d79cf6-6451-4c36-942b-f1c424724fa2@bootlin.com>

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-375129-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826
Date: Tue, 1 Dec 2026 14:47:26 +0100
Organization: Usenet Network
Message-ID: <36f6f4aa-dc85-46f5-aa2a-6f0251b737db@lunn.ch>
References: <20261201064909.2698827-1-jie.gu@leica-geosystems.com>
 <96d79cf6-6451-4c36-942b-f1c424724fa2@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1726624"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:69xXmd1v1+OSXZKvr3Cz3Jmg0to= sha256:VEQtrfzWfe4/jvf9BTLCmoVa7XBLS/wmvwBhXk3FM/M=
	sha1:t62PLy6O6vv2sw8AZ1xUcFmWcvM= sha256:Fyu5kCi6J3oDxBT+iP1zzbfitOmTquPmgJ3VLJImmq0=
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 A516E1173CB; Tue,  1 Dec 2026 16:47:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, 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 W-SDtcU04yHz;
	Tue,  1 Dec 2026 16:47:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375129-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 CDB861173C8; Tue,  1 Dec 2026 16:47:42 +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 0DEDB2E67D; Tue,  1 Dec 2026 13:47:41 +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=1796132860;
	b=kua4yCmzomrjTzZQjmBmr8uJ14jOwv8vjhyY6QIviZ7E3V2eEvOsHI065C6xZdCX1h/k
	 BUKN2rHULMRt0DiyjV7x52OS0xl6E0UcCNR8nQf6YCEK4ppbf1/6G3awojUgAoEqadiKm
	 HP8GIqDu0gvUJsZO0TrB//Hk923jh6bg+42oucqy5elVL+Pzqzj4NEUgkJDkXS6E04YS/
	 s02A/UKLCq06+6wI7qXe7o+kg2QIQZY6pCQwqT5NZScuvMDqDHa7L+KU9qEPMG55rwH1Z
	 veX0g0kDWeXZnQEsa109e/2hEolUsu96MgBqtYVeEczT57gDWcOe9ZzG1CF9aXqUgsA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796132860;
	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=0pPVfzCVFEWDahSDgoEJAqZ9rWJ5jB+x5OliRgn6d6Y=;
	b=dUsrLdfpPNfb5X8W9Icwx/PqFdBjrXM/LiltF1Jv3OjswljiZFKZ7Pqdt+Cww8OdPJ3P
	 JbbF2CWcbkd/0vEWkw+4t6fr23eMzHzTBGMSeUYGh9OR8tnvQbyPsXJ0otGQCZsoLs74n
	 IokHyxgzRnY9xzrcmkpiSSg7F9Lr+ShWbcXH69Ph1jbz+SXoZBXsHelJ87b8BdQ13etOg
	 GvRZr1ITUaWLZdKem+8bk/XvGWrdAgsbIE8T+p/gbG+wntoMMjkrZVvrNV2VjD79GKYg9
	 36K7VztpLE/10715Ubzi0pZh8VbVoE1WnBlzyi7NWeZft380J2XA6qV9IT20cXWHCvQ==
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=Z1hlBBUz;
	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 D7AEE606A325;
	Tue,  1 Dec 2026 13:47:40 +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=Z1hlBBUz
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=1796132860;
	b=jLVLN0s54sJH2CD40ickSjaQqakdZGWN6vGsUFaXiUxNEYZTs63JSOGo2E/lQ2j3vG9p
	 gXwGZeSRjVolhlMbqLNeMHm3nrxwscim+a3+n30AUrMeFFMEJH4HwzrDAONzsT/HR8tDG
	 tIdKX8sM9V7+aOvSPLAJEx5R37LOOpU3tRX5fhqh1FWxHPT/frXUEJ/VGuLJILv6Ry7zd
	 l37/qyBjPDsLHD1vb0gh3EMLZZGZgW+iA+eyBJUoVCxHtcg3IhKpyCJIGCdOrsAoTGzor
	 udDk0tBGOJ99zkQG4LzLdoSkrJoSSfMfW85IbhTjQ99OKtqIh9Y55HWGC+yj8klUiZw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796132860;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=0pPVfzCVFEWDahSDgoEJAqZ9rWJ5jB+x5OliRgn6d6Y=;
	b=ZrxeZWj65OLsmmzyP3xzi9drF2eF9sucfvE7XusAXIp2gYlhiYe931CHI9TL1861pBiB
	 c+t1uOzPSYdo31JjFH/1A5phbAjIfNrUlycpiaTcVRpVlTcQ9T2XT1EqKUajT8Lv7j3l9
	 Kcy73FERol99AY/OlY2PYBrcge8BKyr3d5DGEoBR2mas6qkp4HDtzeYpZrXSlE73aIAYn
	 GSjv/k44KzXt9ghkzNHdEd0Qc+d4VRgq6HBc49EFVpPgcaP/kE/CJYW6+N2JnDzYUltxO
	 adL69ePdW8xYayOCcRGMJEZQWdMAsGazSTwrUaji4QPBDU2bkv7sGbo2GCSnn75VzbA==
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=Z1hlBBUz;
	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 B3944606A320
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 13:47:39 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3944606A320
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=0pPVfzCVFEWDahSDgoEJAqZ9rWJ5jB+x5OliRgn6d6Y=; b=Z1hlBBUz//euuszRKK2HmUmPYj
	+Oaqv3Wt7LBNFTdjb88Cbm9PuiweiQM4JiOtVXh2IUCT/UJuo3aGJCothiXpx49ANCXn/2aU+CPSH
	eUfY3XSIOpig0gezHVb+ABkgpZwLqT2eOThS2wzB/uFCGIsGCCwuyDL3SzFlwKpnC834=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xYOCc-002cvU-1b; Tue, 01 Dec 2026 14:47:26 +0100
X-Cc: Jie Gu <jie.gu@leica-geosystems.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, Jie Gu <jie.gu@leica-geosystems.com.cn>
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: <96d79cf6-6451-4c36-942b-f1c424724fa2@bootlin.com>