From patchwork Wed Feb 1 14:58:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 51387 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp326702wrn; Wed, 1 Feb 2023 07:03:07 -0800 (PST) X-Google-Smtp-Source: AK7set+ynxjD2vU6B+pyFhSc/n3Xtfkb6TFmRsuCf1TPDubGnMJJng30uzY8j5ut4ZSyyHCs3Wg8 X-Received: by 2002:a05:6a20:6921:b0:b8:6a9d:179b with SMTP id q33-20020a056a20692100b000b86a9d179bmr3152743pzj.11.1675263787607; Wed, 01 Feb 2023 07:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675263787; cv=none; d=google.com; s=arc-20160816; b=B56pZQqB2eQGwwlbGndsndOVdLiU0oN2qQI3m7cfDCQIwweZKy6VZu/TQ3cO56G3LN B9ltbawoGXrnybJh3CEcBp8/z7DJvxqSKWnDgkrgPC7BmL76FU29hWmByg4evh5UtP1h KRxlDbrcYfb8OCDMEL7CRs83f546Vfl061BMNPZ577FExYrRAI+3X2ejyjeVdYnPQn7c Obrc6CSl1Wf6DTpTeEkMp/0q+493iXospfla4E5RlP9htQYhkj/7lvmSwwGfFDVXB4/P vH+MSQlL11NDbixPaKvCSk+GAUHv4jqfeqjrkfneS9fj2mguwgbo3at9EObTJ/rhQG42 w18g== 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=FLzjgwXBkwsSUMh+H3RH4+NBZJq1wwHKehFdMsz83FQ=; b=EtJBjJkjr93IKD3HcP+8ZJWF/Z8iVNokmsV5S5zV1yDXIcUoQHH/Y7sz24S6IxNWJC t1oSKapJjJz5t0LI3/oRNHdJYbTjkyDHMr1iaIq4BoD58Txczaox/8R0GDLbyYUSANXJ M4zoVQ519sK2bojy5SIlcTh2VDyabTeJmm3JbC1lBI7aQ1kOOt06jHUHphE7ul5hlAXt wgGHilR8+5VAk79WvjWO7hJC6qWM7rVgDMNDUIYWd0kEHkskmn/iaT2p9CAG2sdHxe+d /aYG+0jITJnA+yaI1O9dGF+fGtRzHKVjmwXSx8P/2BZAcG2bVovnSEDgukWgCADJKecf U1Hg== 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 x22-20020a63b216000000b004bbfa29fb4asi18495754pge.563.2023.02.01.07.02.55; Wed, 01 Feb 2023 07:03:07 -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 S232126AbjBAPAb (ORCPT + 99 others); Wed, 1 Feb 2023 10:00:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232717AbjBAO7J (ORCPT ); Wed, 1 Feb 2023 09:59:09 -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 38B7A6B9A6 for ; Wed, 1 Feb 2023 06:59:07 -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 ) id 1pNEZd-0002rn-06; Wed, 01 Feb 2023 15:58:57 +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 ) id 1pNEZY-001w1w-8a; Wed, 01 Feb 2023 15:58:51 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pNEZT-009hWR-Fc; Wed, 01 Feb 2023 15:58:47 +0100 From: Oleksij Rempel To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wei Fang , Heiner Kallweit Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Arun.Ramadoss@microchip.com, intel-wired-lan@lists.osuosl.org Subject: [PATCH net-next v4 13/23] net: phy: add PHY specifica flag to signal SmartEEE support Date: Wed, 1 Feb 2023 15:58:35 +0100 Message-Id: <20230201145845.2312060-14-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230201145845.2312060-1-o.rempel@pengutronix.de> References: <20230201145845.2312060-1-o.rempel@pengutronix.de> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756641401685287743?= X-GMAIL-MSGID: =?utf-8?q?1756641401685287743?= 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 --- include/linux/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 89556cb2c555..6063b0c7a06e 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 /**