From patchwork Fri Oct 21 05:56:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raju Lakkaraju X-Patchwork-Id: 6516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp509993wrr; Thu, 20 Oct 2022 23:03:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7jE/FOL/5DpvFwK9gKzLLFdmu18Se27uzVmG12O69CQVLM6M2QVi2K0LSrkjpQW8aPyumE X-Received: by 2002:a05:6402:c45:b0:442:c549:8e6b with SMTP id cs5-20020a0564020c4500b00442c5498e6bmr15777671edb.123.1666332197906; Thu, 20 Oct 2022 23:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666332197; cv=none; d=google.com; s=arc-20160816; b=ExXPPgPKIOdDTholPBIVoOfTzjJJOzl3tcUybWXLvbVwWXa2iTJiXzheqGQj/5Xg8E bhf0oM70hr5jMvsnhnRpAD+iUuJjP+HQYmFhnyt8Bte1Jhj1kCNcprEpnTDMoO2uvTiL CP2/xPu4vEN282oet7ONm+yGs1/bI6ek3HSZUHjKDudMsL1+gdyYfYOt+ne2A+LhNWAa +C6lReBVYdurLqg+fEtkI4D2kkqNwiprqXzbKZFEAoA6S4VUrPiU8yIyAnM5jgs5uiLp 4C8TOZ2cUc3gT+DW2I8UGRifsrPCctEYWnMYbGhywYxZCPYrHVRvdM6Vvh7RrEdafjAJ hZkA== 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 :dkim-signature; bh=XNrFZEenxvUBdAPB8gv4YSYnt/WiTASKZQzmnmaML6I=; b=S1f/RjjnQfMVXBKXZW+ueihGJSD+kb/QpWbz26RNCtaP/6KIrz3XDGYqO/G/wEuipv DgJMoPw6RzKboyCGgeu0dHgvCxok7F8B3AtOkXCAIdtZ9X3knJvFjl//U41LWtnr3UAc YB0KxQ55zHxnb8hFNopywU7GGJejobAhy5VDgTh/TLpiBWyh9PVUiE0/niuOjY9y2MS9 EXphPa5vVcznLUr0F6cp9ApY4mEj+1DWCrUjgtJT2gwyYNScrjgoB3bVLRyX9zaiZtIu eWdXWca7AzhmjxuCAT3VBgyvzDUvMG4ukM/uSLTinCiWT2P1r3RBGSzYQMMRicF9o3el eFrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=SC0POtKf; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a056402114800b00458e43471d5si17243041edw.614.2022.10.20.23.02.52; Thu, 20 Oct 2022 23:03:17 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b=SC0POtKf; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbiJUF5P (ORCPT + 99 others); Fri, 21 Oct 2022 01:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiJUF5K (ORCPT ); Fri, 21 Oct 2022 01:57:10 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1182D1EEF25; Thu, 20 Oct 2022 22:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666331825; x=1697867825; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xiOMvkgMSVV2l1xLp70m3sIVhMwsGVmwEzz/klMT5DQ=; b=SC0POtKfL2r374hje0cM4opwvNycrhMyNnaj/TbxAvAtvWbCFw+SOtbD Bl+qzU066KF3uW0jIRWItP1bLOYpotgdDPD/5SIoIJ94eNnngrXR5bP11 0RSnKb+bDKSs8PcWR/RWp+PS1ZHNcHnfnYFDF1txhmFx/WxXDVICtnWoQ CbqxZdjvC1phg1ZwSP6p8pGbi40K+RZtt5xhU91OzgUehkSTqJJoGZhNG w12WaBGXYgfed/BPWPjBhogd9Ccm8ShkQ/G5q7a1vgap2BvPxaVY89AQV 8fYDlw64IEEik9dsboVlOXqOPK0can26ih5KgcXzt6RpVfLW5HmsD+2QV Q==; X-IronPort-AV: E=Sophos;i="5.95,200,1661842800"; d="scan'208";a="183277544" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Oct 2022 22:57:04 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 20 Oct 2022 22:57:04 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 20 Oct 2022 22:57:00 -0700 From: Raju Lakkaraju To: CC: , , , , , , , , , , Subject: [PATCH net-next 1/2] net: lan743x: Add support for get_pauseparam and set_pauseparam Date: Fri, 21 Oct 2022 11:26:41 +0530 Message-ID: <20221021055642.255413-2-Raju.Lakkaraju@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221021055642.255413-1-Raju.Lakkaraju@microchip.com> References: <20221021055642.255413-1-Raju.Lakkaraju@microchip.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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?1747275951116766451?= X-GMAIL-MSGID: =?utf-8?q?1747275951116766451?= Add pause get and set functions Signed-off-by: Raju Lakkaraju --- .../net/ethernet/microchip/lan743x_ethtool.c | 46 +++++++++++++++++++ drivers/net/ethernet/microchip/lan743x_main.c | 4 +- drivers/net/ethernet/microchip/lan743x_main.h | 2 + 3 files changed, 50 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan743x_ethtool.c b/drivers/net/ethernet/microchip/lan743x_ethtool.c index c739d60ee17d..44c98715eb17 100644 --- a/drivers/net/ethernet/microchip/lan743x_ethtool.c +++ b/drivers/net/ethernet/microchip/lan743x_ethtool.c @@ -1233,6 +1233,50 @@ static void lan743x_get_regs(struct net_device *dev, lan743x_common_regs(dev, regs, p); } +static void lan743x_get_pauseparam(struct net_device *dev, + struct ethtool_pauseparam *pause) +{ + struct lan743x_adapter *adapter = netdev_priv(dev); + struct lan743x_phy *phy = &adapter->phy; + + if (phy->fc_request_control & FLOW_CTRL_TX) + pause->tx_pause = 1; + if (phy->fc_request_control & FLOW_CTRL_RX) + pause->rx_pause = 1; + pause->autoneg = phy->fc_autoneg; +} + +static int lan743x_set_pauseparam(struct net_device *dev, + struct ethtool_pauseparam *pause) +{ + struct lan743x_adapter *adapter = netdev_priv(dev); + struct phy_device *phydev = dev->phydev; + struct lan743x_phy *phy = &adapter->phy; + + if (!phydev) + return -ENODEV; + + if (!phy_validate_pause(phydev, pause)) + return -EINVAL; + + phy->fc_request_control = 0; + if (pause->rx_pause) + phy->fc_request_control |= FLOW_CTRL_RX; + + if (pause->tx_pause) + phy->fc_request_control |= FLOW_CTRL_TX; + + phy->fc_autoneg = pause->autoneg; + + phy_set_asym_pause(phydev, pause->rx_pause, pause->tx_pause); + + if (pause->autoneg == AUTONEG_DISABLE) + lan743x_mac_flow_ctrl_set_enables(adapter, pause->tx_pause, + pause->rx_pause); + + return 0; +} + const struct ethtool_ops lan743x_ethtool_ops = { .get_drvinfo = lan743x_ethtool_get_drvinfo, .get_msglevel = lan743x_ethtool_get_msglevel, @@ -1259,6 +1303,8 @@ const struct ethtool_ops lan743x_ethtool_ops = { .set_link_ksettings = phy_ethtool_set_link_ksettings, .get_regs_len = lan743x_get_regs_len, .get_regs = lan743x_get_regs, + .get_pauseparam = lan743x_get_pauseparam, + .set_pauseparam = lan743x_set_pauseparam, #ifdef CONFIG_PM .get_wol = lan743x_ethtool_get_wol, .set_wol = lan743x_ethtool_set_wol, diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index 50eeecba1f18..c0f8ba601c01 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -1326,8 +1326,8 @@ static void lan743x_mac_close(struct lan743x_adapter *adapter) 1, 1000, 20000, 100); } -static void lan743x_mac_flow_ctrl_set_enables(struct lan743x_adapter *adapter, - bool tx_enable, bool rx_enable) +void lan743x_mac_flow_ctrl_set_enables(struct lan743x_adapter *adapter, + bool tx_enable, bool rx_enable) { u32 flow_setting = 0; diff --git a/drivers/net/ethernet/microchip/lan743x_main.h b/drivers/net/ethernet/microchip/lan743x_main.h index 67877d3b6dd9..bc5eea4c7b40 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.h +++ b/drivers/net/ethernet/microchip/lan743x_main.h @@ -1159,5 +1159,7 @@ u32 lan743x_csr_read(struct lan743x_adapter *adapter, int offset); void lan743x_csr_write(struct lan743x_adapter *adapter, int offset, u32 data); int lan743x_hs_syslock_acquire(struct lan743x_adapter *adapter, u16 timeout); void lan743x_hs_syslock_release(struct lan743x_adapter *adapter); +void lan743x_mac_flow_ctrl_set_enables(struct lan743x_adapter *adapter, + bool tx_enable, bool rx_enable); #endif /* _LAN743X_H */ From patchwork Fri Oct 21 05:56:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raju Lakkaraju X-Patchwork-Id: 6517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp510182wrr; Thu, 20 Oct 2022 23:03:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4oJejaMz1e8cV1ImKeDkp+mTaiT80+dCcLI0L9YHZdPLG6ikrWbZM+pY2BN4WFVSoo/R5R X-Received: by 2002:a17:907:3f8f:b0:78d:f741:7f5a with SMTP id hr15-20020a1709073f8f00b0078df7417f5amr14060271ejc.71.1666332224962; Thu, 20 Oct 2022 23:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666332224; cv=none; d=google.com; s=arc-20160816; b=d0leFdLfXphIK+QLEBjFcvHglFRxlS7bxiSYlbueBwHyHoB8mKeKU0LTe3izLSymaO HIiY2e3sWsdJlov4kwMjinfyuV5nz49aUSD8pVfMJe7uMOBlAa6OHJoktLRJTQXC27LB arJq1YcjfIhWqbNSgSTN+d7vWi5sRp6NtEvIDFaglrxdYGYzKtvdnghwg6akoHGAM/0E e9+9ll7Vuq+hy611oD+rMHpNRP+Dn8+FqD/qhHtxVwxeANj0DvGOgj4VSW0LlC8S/4EP rmU+k7S1YWUITBLmgHkf+mm8OiYMfSRQGb8lz360WwesyE++ekahFtRRQ0fL9mcLRV8A lrSg== 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 :dkim-signature; bh=JbTtN3gkjb4lFYSMlYkU29JmrD1cO4Th876Xsyzm1f4=; b=TWvyhdMteyDutoMEL2MiP1N/3nnHuEIeWycfv+/f0KPpZC04OiuirgOj0KaZwnvnAN +QkFM98SOZlNyP0sdLST1/3J2qKadph3h3tZ0hyOGN6Ho7i1rtGZPHV6iJ84kgt1cU7b S8ArVv8e9no+iJpPl4nRmLC0zzt48R0PUJpn1jWPofAIzNSnN/1vC4amSejQ9g7WDLTU PbGoygBryuatq1+qafUA0JjiVfDwCr63E+8CLGZjjml07tU8+UvXyOwyje0LbVN6wLtr F7c6Gh+4A/MLKmLoLzGb/Z+rO0xzEO4f3yfd09rH5BT+wHr8zMRSgBO84x5uJ9l/fOWI 9TzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=LIgHf147; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170906794f00b007882926848bsi19845300ejo.818.2022.10.20.23.03.19; Thu, 20 Oct 2022 23:03:44 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b=LIgHf147; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbiJUF5k (ORCPT + 99 others); Fri, 21 Oct 2022 01:57:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbiJUF5R (ORCPT ); Fri, 21 Oct 2022 01:57:17 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6549232E4A; Thu, 20 Oct 2022 22:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666331834; x=1697867834; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IN5dARwTPVNqEfYY1oKuULXoIYX0VYI8h0OnJQpkk9k=; b=LIgHf147mxZB/yVjtM7RIqJ335vH0HPCLe1WYsF1wD4eFvmcNw4De9s9 fRmfyxxisWjAyAr3OOKn602e/Kb2i5d+1hWwNqdBgZtEhuqHIslPCqWFX vAHbBvmdjm0BLY4x3UdvqzF/r00Hn1uqnKqaW8YlO4XYF+CmjOM/lZhfC 2hwxMXkw7vj6tOIQoobyK1X3mawp3Qco2o7bd9F3giNOrlmIODeUruicb yMRJXZuoLSONZlLDHOVLYdyIUkAX36hqfhWvn6hMGIklJWcOHl8nI1riB LoQb8G9D/YuhOtWitLgjrFAQLK6xN3Rz+l6/OW7X4UgSYy59kptxR2hzR w==; X-IronPort-AV: E=Sophos;i="5.95,200,1661842800"; d="scan'208";a="185688244" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Oct 2022 22:57:12 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 20 Oct 2022 22:57:11 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 20 Oct 2022 22:57:07 -0700 From: Raju Lakkaraju To: CC: , , , , , , , , , , Subject: [PATCH net-next 2/2] net: phy: micrel: Add PHY Auto/MDI/MDI-X set driver for KSZ9131 Date: Fri, 21 Oct 2022 11:26:42 +0530 Message-ID: <20221021055642.255413-3-Raju.Lakkaraju@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221021055642.255413-1-Raju.Lakkaraju@microchip.com> References: <20221021055642.255413-1-Raju.Lakkaraju@microchip.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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?1747275978706113425?= X-GMAIL-MSGID: =?utf-8?q?1747275978706113425?= Add support for MDI-X status and configuration for KSZ9131 chips Signed-off-by: Raju Lakkaraju --- drivers/net/phy/micrel.c | 77 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 54a17b576eac..40aa52d442f8 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -1295,6 +1295,81 @@ static int ksz9131_config_init(struct phy_device *phydev) return 0; } +#define MII_KSZPHY_AUTO_MDIX 0x1C +#define MII_KSZPHY_AUTO_MDI_SET_ BIT(7) +#define MII_KSZPHY_AUTO_MDIX_SWAP_OFF_ BIT(6) + +static int ksz9131_mdix_update(struct phy_device *phydev) +{ + int ret; + + ret = phy_read(phydev, MII_KSZPHY_AUTO_MDIX); + if (ret < 0) + return ret; + + if (ret & MII_KSZPHY_AUTO_MDIX_SWAP_OFF_) { + if (ret & MII_KSZPHY_AUTO_MDI_SET_) + phydev->mdix_ctrl = ETH_TP_MDI; + else + phydev->mdix_ctrl = ETH_TP_MDI_X; + } else { + phydev->mdix_ctrl = ETH_TP_MDI_AUTO; + } + + if (ret & MII_KSZPHY_AUTO_MDI_SET_) + phydev->mdix = ETH_TP_MDI; + else + phydev->mdix = ETH_TP_MDI_X; + + return 0; +} + +static int ksz9131_config_mdix(struct phy_device *phydev, u8 ctrl) +{ + u16 val; + + switch (ctrl) { + case ETH_TP_MDI: + val = MII_KSZPHY_AUTO_MDIX_SWAP_OFF_ | + MII_KSZPHY_AUTO_MDI_SET_; + break; + case ETH_TP_MDI_X: + val = MII_KSZPHY_AUTO_MDIX_SWAP_OFF_; + break; + case ETH_TP_MDI_AUTO: + val = 0; + break; + default: + return 0; + } + + return phy_modify(phydev, MII_KSZPHY_AUTO_MDIX, + MII_KSZPHY_AUTO_MDIX_SWAP_OFF_ | + MII_KSZPHY_AUTO_MDI_SET_, val); +} + +static int ksz9131_read_status(struct phy_device *phydev) +{ + int ret; + + ret = ksz9131_mdix_update(phydev); + if (ret < 0) + return ret; + + return genphy_read_status(phydev); +} + +static int ksz9131_config_aneg(struct phy_device *phydev) +{ + int ret; + + ret = genphy_config_aneg(phydev); + if (ret) + return ret; + + return ksz9131_config_mdix(phydev, phydev->mdix_ctrl); +} + #define KSZ8873MLL_GLOBAL_CONTROL_4 0x06 #define KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX BIT(6) #define KSZ8873MLL_GLOBAL_CONTROL_4_SPEED BIT(4) @@ -3304,6 +3379,8 @@ static struct phy_driver ksphy_driver[] = { .probe = kszphy_probe, .config_init = ksz9131_config_init, .config_intr = kszphy_config_intr, + .config_aneg = ksz9131_config_aneg, + .read_status = ksz9131_read_status, .handle_interrupt = kszphy_handle_interrupt, .get_sset_count = kszphy_get_sset_count, .get_strings = kszphy_get_strings,