From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796134874; b=DZjdigpb+AcEwzQLmDD/KJL286T3IqGCwcxzwA7+CrB/RBjOgRucqoxvK5eoR1N0v3eP ZjReMnk5gXF0bBZoYAlb4rdq0Km8LwrhI2Z8M8hN6gSbf0T7BvL0smMS8ma9OnYMseuiY F5TEV66bbTclLsDCacacYiVuJAnv66yF14nL77PTqXDO2qptiyYi6rC0/NWeP1kE2Wwrx cPP1C+SHy1/oACTiN7/XoBRVafOkKXtjHHDhgEcjuoUrpIW1RJN0k9TMD5NQlLb8z76UM a/fiW+y88Y2ipfVNDkDCJAsuqUCSclV4Yeyz5ogyskH4BVS5bavWF2gZ/xbnaTQSLxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796134874; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=U3AiJ1cwQ1jHpBhpYVqf0PW2RMIgMqXZszzweMb1g3c=; b=OT1O26BHvuP2r6o8J9mXHBCl+ThR7V/EJ1ypVuGaU3rWOeL2zX0rp2BF8dCz7n5/0wUB va8d5F0jpf1wdDQT8ChNAnpPdI8C+CkttqMbZi6tPp1VYvP8BglsLDX7rm+RXW+xPF9eY HZ7a2cx6TBbMBO0vwsfMkEmnZO3+fzFgnmLTYlaqEQwknxpIjgyoiUAsLktq2y783XKx9 2Ze4VFV/NKT68RO866/BcfwSEgAnXEpSmoPtyv6K4/T1nuLbRuzEzAjRkePMNnDy045gJ jvdTw8TFvHUhbXL1/NDk9khR5tKDTNlYFY/FlJOGVqE/0rsn1c3A3o5tGWuPxYOpy7A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=FV9TOFUn; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09A8B606A31A for ; Tue, 1 Dec 2026 14:21:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09A8B606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=FV9TOFUn Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 251951A18AA; Tue, 1 Dec 2026 14:21:12 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EB08A603CB; Tue, 1 Dec 2026 14:21:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 68D5411EA25CE; Tue, 01 Dec 2026 15:21:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796134871; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=U3AiJ1cwQ1jHpBhpYVqf0PW2RMIgMqXZszzweMb1g3c=; b=FV9TOFUnP2pkvLdLiK7PpTJ6bFg21esVEEiXgkBrwvp91uz04I2RTeLb+cFJEi1te/qGYl Cx62vHBZboA6QjIpH75csvFjBOo+6yY0wfKOmL1vXsaZsWIAICBZisoy8hzpDTzY8cT8hX x0Jju1hNgrYIjDRHdKlYI/lWBhY0YYvN7jfu5rwtOInrEDU0QYOvstuU+3zNwuMO2lNMCv DBRyuVRe7k9fohvHzqpFgnIRCg42uwyEE7ZeosPVsiD2hiC/z2Ec+lY7CgUhcBDOMTBDhD KlQcIV+Mi33k55gfHg4w7WL6IlwAJu6GKHAnbYiVg9NuHeaVc3tWwC/oFIlZHQ== Message-ID: Date: Tue, 1 Dec 2026 15:21:02 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826 To: Andrew Lunn Cc: Jie Gu , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, Jie Gu References: <20261201064909.2698827-1-jie.gu@leica-geosystems.com> <96d79cf6-6451-4c36-942b-f1c424724fa2@bootlin.com> <36f6f4aa-dc85-46f5-aa2a-6f0251b737db@lunn.ch> From: Maxime Chevallier Content-Language: en-US In-Reply-To: <36f6f4aa-dc85-46f5-aa2a-6f0251b737db@lunn.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi, On 12/1/26 14:47, Andrew Lunn wrote: > 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 >>> >> >> 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: Ha. I'm too busy complaining that people don't read the code anymore that I forgot to grep myself... That'll teach me. > > 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. Ok so right API then :) I never heard of EDPD before hence the suprise. Thanks, Maxime