Message ID | 20230214090314.2026067-5-o.rempel@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2854675wrn; Tue, 14 Feb 2023 01:07:48 -0800 (PST) X-Google-Smtp-Source: AK7set/88Q6axWuF7TP9N1F0O7tWofjK2ajyhAgXbc541BYW7IUpCiFZk2NTF0e8jLo9r2KOX8Bg X-Received: by 2002:aa7:9695:0:b0:5a8:4c55:db6f with SMTP id f21-20020aa79695000000b005a84c55db6fmr1447667pfk.19.1676365668149; Tue, 14 Feb 2023 01:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676365668; cv=none; d=google.com; s=arc-20160816; b=BjNQIOGNBcrplpi+ERqUWnlj7irMUXioEgOOcWPyDEtEG6q4Ez5UdPnFY2Jve+smBz 1+aAZut7tVTEoSaM/FpGZXqN0NAIpRYcqtJXNMBplsN8b/2H5Znj2AJn5sUP2WeaiFWY YG/SFn9a+Fbf0//AiDe5VMXPpdo++dRlFItmx5gf7bFoXJ7zg6/KsuM6dOUWXdyc7/FV 9FYPawtBKPhF7QNjkrd37d5xk3fM0uOjFvo8gOqEbYdlWlS8UlgOAAlFLl4VrZYMuZCF 6dT3z3Ccq7n9QouXIBxS9PJOk5LElJSt3IQJApdr/dnGVpNAmJaDotjJzzNOF5ffSbar klaQ== 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=Z+SkqRpV0nzNmM8bYgdVLWnqYhWMydAEGes8semSAqU=; b=ckhp0OvKD0r820Eo2yPcBP9zQFx1x+FwN+qJlWt3uM40Tr2tj6V9VseSzrYVklzr2A bloki31GN9DrmRkNo8EvI6LSmGHryLo09EH7LIayYYN5q/x9GjtprZF4Jso4VW3kSKLF g34PUgErTc+Mnqt3w970Ys/KtJdkvEjrPnkzhcCZVpKJ5mQfpMkqTevmLrzQVjPyGJaR e7ngm6gWSYGSmSBR+4Oq7hDXsPO3qbb9fm/hmXPm2TnN8s6NTp67YO1oMRjWOGJsrpDB aH1+RPrCQeBeNq3HMvBYRzpksa69Q+LruRl0J8UKLuLcul46pJLiqSzLTwyqLCQIC2uq 2sSg== 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 x9-20020aa79ac9000000b005a8e5748d63si255178pfp.284.2023.02.14.01.07.35; Tue, 14 Feb 2023 01:07:48 -0800 (PST) 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 S231648AbjBNJDd (ORCPT <rfc822;henrikjoshmiranda3@gmail.com> + 99 others); Tue, 14 Feb 2023 04:03:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjBNJD2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Feb 2023 04:03:28 -0500 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 239B8CDDE for <linux-kernel@vger.kernel.org>; Tue, 14 Feb 2023 01:03:26 -0800 (PST) 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 1pRrDa-0004UA-JP; Tue, 14 Feb 2023 10:03:18 +0100 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 1pRrDY-004qDa-4d; Tue, 14 Feb 2023 10:03:17 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1pRrDX-008V65-IB; Tue, 14 Feb 2023 10:03:15 +0100 From: Oleksij Rempel <o.rempel@pengutronix.de> To: Andrew Lunn <andrew@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Wei Fang <wei.fang@nxp.com>, Heiner Kallweit <hkallweit1@gmail.com> 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> Subject: [PATCH net-next v1 4/7] net: phy: add PHY specifica flag to signal SmartEEE support Date: Tue, 14 Feb 2023 10:03:11 +0100 Message-Id: <20230214090314.2026067-5-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230214090314.2026067-1-o.rempel@pengutronix.de> References: <20230214090314.2026067-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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1757796806571341777?= X-GMAIL-MSGID: =?utf-8?q?1757796806571341777?= |
Series |
make SmartEEE support controllable
|
|
Commit Message
Oleksij Rempel
Feb. 14, 2023, 9:03 a.m. UTC
Typical EEE support need cooperation of MAC and PHY, so both parts should
be able to do EEE. But, there also PHYs compatible with normal 802.3az
standard working with legacy MAC without EEE ability, acting as a complete
EEE power saving system.
To identify this PHYs we need a PHY specific flag. Since the PHY
specification implementing this functionality calls it SmartEEE, use
the same flag name - PHY_SMART_EEE.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
include/linux/phy.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/phy.h b/include/linux/phy.h index 6709fbd72e10..e6b12653c655 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -85,6 +85,7 @@ extern const int phy_10gbit_features_array[1]; #define PHY_IS_INTERNAL 0x00000001 #define PHY_RST_AFTER_CLK_EN 0x00000002 #define PHY_POLL_CABLE_TEST 0x00000004 +#define PHY_SMART_EEE 0x00000008 /* EEE done by PHY without MAC */ #define MDIO_DEVICE_IS_PHY 0x80000000 /**