Message ID | 20230130080714.139492-13-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 s9csp2062227wrn; Mon, 30 Jan 2023 00:09:51 -0800 (PST) X-Google-Smtp-Source: AK7set8uEHlCKxd1bNTRgvctKSH9FYiYpa91lhuHqVHU45z6oy4zzNa4xa3T3Fr9ArGP8Nccovhb X-Received: by 2002:a17:906:848e:b0:87b:d503:2ee3 with SMTP id m14-20020a170906848e00b0087bd5032ee3mr10791780ejx.11.1675066191396; Mon, 30 Jan 2023 00:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675066191; cv=none; d=google.com; s=arc-20160816; b=Qcj0MFUHrPfSdbLUurI4ccuI1pGnxlEXQrhMuoJVSN58ygJRaGr2T6Xh/5RcKUmpNa 3Sh79AD5TUVTFil2dTz7pO/GwIWqZmjJfbwQeNFiptDtREs7y1VHe5q18PTmtTh/zu9B N+HdyFvC2gPxE4IlUw/xnbGpFjNqJVj49NubTfzPf5SWGUf8LNMAM0ga67ou0zOfh48F 0DSaaZCcwMS2Ihdrha1EfnmH7I1FEml2vFtTyqD8jWj3j0kSqgAYabdbqF1DKOKYJfe5 cutz+UmR0p9dhTFNYNvWe65gB5Xd/HSO9IB2gVA13ElAcyjFkgSDDwmhSurdhFBAcPTa KmHw== 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=LwhlCYpkAE6cjkUzIo8y3HIl2nvjsNCxSubhbhVAy3Q=; b=K6oxdtsTWnpJLTxOjfVlAW3JrewTYJGpewSzcLdVB9gQ4xvOfm2lpRtU5qqQRVM7xC wgWKxnCkBPvLdALBm7tMeHdgXWWK9rI6yJ1BUAZU45703R0S4otOvZ2qqHcY3XMA8Xf+ 3l5W554RUbN8PP45OVHrjAFHGAKuZoNZvQSWgpcqjydjYdspxTDgqSt8xasepowZdGmw MoOhGcjIVsY1JkHZgg9ggdCJ3E9YXyv95wuUBhLWER0hyfFbyWfUp8gVWIt+JBp7uCHP 7ohZOfxjqhohbv+BA4Vheo2iL+vCyx7UTAkvB10rwD0tGn4BFL/9U+9ztreZE4HPuK9N P4WA== 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 bp13-20020a170907918d00b0087b12541eb1si9415441ejb.74.2023.01.30.00.09.28; Mon, 30 Jan 2023 00:09:51 -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 S235859AbjA3IIF (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Mon, 30 Jan 2023 03:08:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235627AbjA3IHe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 03:07:34 -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 7DBF729E15 for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 00:07:31 -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 1pMPCF-0003fI-Ti; Mon, 30 Jan 2023 09:07:23 +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 1pMPCB-001PwY-6V; Mon, 30 Jan 2023 09:07:18 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1pMPC7-000aKk-Ns; Mon, 30 Jan 2023 09:07:15 +0100 From: Oleksij Rempel <o.rempel@pengutronix.de> To: Woojung Huh <woojung.huh@microchip.com>, UNGLinuxDriver@microchip.com, Andrew Lunn <andrew@lunn.ch>, Vivien Didelot <vivien.didelot@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Oleksij Rempel <o.rempel@pengutronix.de>, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Arun.Ramadoss@microchip.com Subject: [PATCH net-next v3 12/15] net: phy: add PHY specifica flag to signal SmartEEE support Date: Mon, 30 Jan 2023 09:07:11 +0100 Message-Id: <20230130080714.139492-13-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230130080714.139492-1-o.rempel@pengutronix.de> References: <20230130080714.139492-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?1756434206983502898?= X-GMAIL-MSGID: =?utf-8?q?1756434206983502898?= |
Series |
net: add EEE support for KSZ9477 and AR8035 with i.MX6
|
|
Commit Message
Oleksij Rempel
Jan. 30, 2023, 8:07 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 f6619f4aaa4b..90d7b90fa1f4 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 /**