From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7FDEC54EAA for ; Mon, 30 Jan 2023 08:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235786AbjA3IHy (ORCPT ); Mon, 30 Jan 2023 03:07:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235580AbjA3IHc (ORCPT ); Mon, 30 Jan 2023 03:07:32 -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 26FD7298D2 for ; Mon, 30 Jan 2023 00:07:30 -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 1pMPCB-0003f3-2Z; Mon, 30 Jan 2023 09:07:19 +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 1pMPC9-001Pvp-3s; Mon, 30 Jan 2023 09:07:16 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pMPC7-000aJ0-Gi; Mon, 30 Jan 2023 09:07:15 +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 Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Arun.Ramadoss@microchip.com Subject: [PATCH net-next v3 00/15] net: add EEE support for KSZ9477 and AR8035 with i.MX6 Date: Mon, 30 Jan 2023 09:06:59 +0100 Message-Id: <20230130080714.139492-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org changes v3: - rework some parts of EEE infrastructure and move it to c45 code. - add supported_eee storage and start using it in EEE code and by the micrel driver. - add EEE support for ar8035 PHY - add SmartEEE support to FEC i.MX series. changes v2: - use phydev->supported instead of reading MII_BMSR regiaster - fix @get_eee > @set_eee With this patch series we provide EEE control for KSZ9477 family of switches and AR8035 with i.MX6 configuration. According to my tests, on a system with KSZ8563 switch and 100Mbit idle link, we consume 0,192W less power per port if EEE is enabled. Oleksij Rempel (15): net: dsa: microchip: enable EEE support net: phy: add genphy_c45_read_eee_abilities() function net: phy: micrel: add ksz9477_get_features() net: phy: export phy_check_valid() function net: phy: add genphy_c45_ethtool_get/set_eee() support net: phy: c22: migrate to genphy_c45_write_eee_adv() net: phy: c45: migrate to genphy_c45_write_eee_adv() net: phy: start using genphy_c45_ethtool_get/set_eee() net: phy: add driver specific get/set_eee support net: phy: at803x: implement ethtool access to SmartEEE functionality net: phy: at803x: ar8035: fix EEE support for half duplex links net: phy: add PHY specifica flag to signal SmartEEE support net: phy: at803x: add PHY_SMART_EEE flag to AR8035 net: phy: add phy_has_smarteee() helper net: fec: add support for PHYs with SmartEEE support drivers/net/dsa/microchip/ksz_common.c | 66 ++++++ drivers/net/ethernet/freescale/fec_main.c | 22 +- drivers/net/phy/at803x.c | 142 +++++++++++- drivers/net/phy/micrel.c | 21 ++ drivers/net/phy/phy-c45.c | 255 +++++++++++++++++++++- drivers/net/phy/phy.c | 66 +----- drivers/net/phy/phy_device.c | 26 ++- include/linux/mdio.h | 53 +++++ include/linux/phy.h | 26 +++ include/uapi/linux/mdio.h | 8 + 10 files changed, 615 insertions(+), 70 deletions(-) -- 2.30.2