Message ID | 20230327142202.3754446-3-o.rempel@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1559012vqo; Mon, 27 Mar 2023 07:36:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bpRqNQ63sag3FBlGXtoOApbxlYaAVLALzhnNRVs4A2IoWRWpmXs6271yUGVLLtayc6XhLu X-Received: by 2002:aa7:ce0f:0:b0:502:24a4:b0ad with SMTP id d15-20020aa7ce0f000000b0050224a4b0admr11268303edv.4.1679927761765; Mon, 27 Mar 2023 07:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679927761; cv=none; d=google.com; s=arc-20160816; b=T9/GiLi3ARrLnU4nz/R4WvpSbMBd9Xa/O0ct6jYJg50K7NThys7CQvDNBwTAwa/ZUh h2/uDPamFfkcVahBWOuXp4FoGAvrRSHMYWmtr3C1PQGoMDu1StTiG3cqxP/he6NP5rAP E8A43iKJHfn6Qk6+g+/VXG4mr9oSlpN5RsB6BbRFUuyjQywsqtHsHXT97ke74rn3CvBW pNbd0b95zeFR7SCcS2lpZZ0HgmLtlU2c/eZROh5ep1fDdpczjtBhsPS3fCks8RFc89cx Mu/XbGP8JCe2xG+qp/xtBXw/W7DJQTo96Cdp0QqovK9k45qIgFzk4w1ah0rj4SRu05/f Rurw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=oAh4+LVUnwglLUYHPcoH7jtFkM2FIJJSUl0J3Xsp7CM=; b=iXdcQLGJHDOXqHY5hId8+V0DWMQfnJSPA45hNeB/YT+uEtyG4Ds5poDDHbUvRpQXMk bi8nnYwSHEEqsvoUYyp/BzQwbLrWkR5xgHNPqpDnW8xNP/5/7VZjDhlym17wx6a0sNFK uP13/1J2xJ15Ci9dtrNLnULIh8ow4H8GyHAhyCH2HxzvUoeJSWp1zEmwdAf5s9wZ+tYs /8N5vwWm45jo8hu8zls+TGrSZ042/khtrLUE6oYly/KLsSpxiEu6hiJLOtmELJ3jFcPf IqZdsCLI5xtQIwPoUlt4fPY6vNYxB6NH9UQqiFJxloRUHvDbrRdIwdFLeEveOTbfPa2+ yeuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020aa7d318000000b004e1db2eb805si27001147edq.494.2023.03.27.07.35.37; Mon, 27 Mar 2023 07:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233023AbjC0OYM (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Mon, 27 Mar 2023 10:24:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjC0OXs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 10:23:48 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E017D8A for <linux-kernel@vger.kernel.org>; Mon, 27 Mar 2023 07:22:14 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <ore@pengutronix.de>) id 1pgnja-0008Hm-Kr; Mon, 27 Mar 2023 16:22:06 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1pgnjY-0076IT-N2; Mon, 27 Mar 2023 16:22:04 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1pgnjW-00Fkit-Qe; Mon, 27 Mar 2023 16:22:02 +0200 From: Oleksij Rempel <o.rempel@pengutronix.de> To: Wei Fang <wei.fang@nxp.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk> Cc: Oleksij Rempel <o.rempel@pengutronix.de>, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Shenwei Wang <shenwei.wang@nxp.com>, Clark Wang <xiaoning.wang@nxp.com>, NXP Linux Team <linux-imx@nxp.com>, Amit Cohen <amcohen@nvidia.com>, Gal Pressman <gal@nvidia.com>, Alexandru Tachici <alexandru.tachici@analog.com>, Piergiorgio Beruto <piergiorgio.beruto@gmail.com>, Willem de Bruijn <willemb@google.com>, Vladimir Oltean <vladimir.oltean@nxp.com> Subject: [PATCH net-next v2 2/8] net: phy: add is_smart_eee_phy variable for SmartEEE support Date: Mon, 27 Mar 2023 16:21:56 +0200 Message-Id: <20230327142202.3754446-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230327142202.3754446-1-o.rempel@pengutronix.de> References: <20230327142202.3754446-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761531932716370631?= X-GMAIL-MSGID: =?utf-8?q?1761531932716370631?= |
Series |
Make SmartEEE support controllable
|
|
Commit Message
Oleksij Rempel
March 27, 2023, 2:21 p.m. UTC
This commit introduces a new variable, is_smart_eee_phy, to the PHY
layer. This variable is used to indicate whether a PHY supports the
SmartEEE functionality, which is a Low Power Idle (LPI) implementation
on the PHY side, typically handled by the MAC.
By adding the is_smart_eee_phy variable, PHY drivers and the PHYlib
framework can provide proper configuration depending on the side that
implements LPI (PHY or MAC).
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
include/linux/phy.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/phy.h b/include/linux/phy.h index 07cebf110aa6..6622b59ab5a1 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -547,6 +547,7 @@ struct macsec_ops; * @downshifted_rate: Set true if link speed has been downshifted. * @is_on_sfp_module: Set true if PHY is located on an SFP module. * @mac_managed_pm: Set true if MAC driver takes of suspending/resuming PHY + * @is_smart_eee_phy: Set true if PHY is a Smart EEE PHY * @state: State of the PHY for management purposes * @dev_flags: Device-specific flags used by the PHY driver. * @@ -642,6 +643,7 @@ struct phy_device { unsigned downshifted_rate:1; unsigned is_on_sfp_module:1; unsigned mac_managed_pm:1; + unsigned is_smart_eee_phy:1; unsigned autoneg:1; /* The most recently read link state */