From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 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== 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== 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 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 ; Tue, 1 Dec 2026 13:47:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3944606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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 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=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xYOCc-002cvU-1b; Tue, 01 Dec 2026 14:47:26 +0100 Date: Tue, 1 Dec 2026 14:47:26 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: Jie Gu , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, Jie Gu Subject: Re: [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826 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> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96d79cf6-6451-4c36-942b-f1c424724fa2@bootlin.com> 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: 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