From patchwork Fri Jun 11 12:54:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steen Hegelund X-Patchwork-Id: 12315675 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 948F0C48BD1 for ; Fri, 11 Jun 2021 12:55:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7904561042 for ; Fri, 11 Jun 2021 12:55:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231590AbhFKM5G (ORCPT ); Fri, 11 Jun 2021 08:57:06 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:23995 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbhFKM5E (ORCPT ); Fri, 11 Jun 2021 08:57:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1623416107; x=1654952107; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OXAufTI7xkFdkCQtCtspmQxuaWx9O9Dqg1OQXDiXCMA=; b=XSvDQHj14zsg8AGkjkQyAq+EKDGVob+FY/A2areTJ87UxBuBh3OkqpJZ IOXBVxsec583pqao/i99ZkLeBVqr7F4c4b2wUOD9eV4nQ8XddSYtW8EiK iZUiI1znIBC/rqGxBVUXzsBnW+VzaI8YdXeEnq23EBdSW9dOQIvf2rO27 C7z0zIVT59k71iNMhxKYzGrugDpOnirjBSEK+4xCvrRsXKCzAV/gybUMM bCh/KJQDHrOiUOqmNzWyqCEqhgwKGPGXnE6pqwKUGXyADVng6BUNypM/x XxMI5PUEMr2huGTIvjkQJUhiDnPApXL/ckbKJSYhT31U/BNHYk/4W3ttF w==; IronPort-SDR: x8aGwwrR24QaZt48HI8CF9Uh0G7RYJUIZbpXanMB2CcbGNBFuJpuVbvQBJX+v+ZFTEuLaQhRX0 VmYMlOCL7OyHdVYQ7zs7SprrFuG6LE2m0wrW8UNFwdUxai7NTKO2dFrnP/WseY/vol5iBDZXR+ lWdfS8WG+9nJspDYYTqwO8O0N4Wiv2EU/A+XtgYiSZYZKR66p2Y+aag4POrbhC7xmvA5xajGyD 9/YXt1HbP1ZPtIP9MPwwJLM404EjRdfGDUvYbIoQNjtpaDXM1BaMKndnAjj/2iapLsxMyo0SV2 uA8= X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="124398238" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2021 05:55:07 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 05:55:06 -0700 Received: from den-dk-m31857.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 05:55:04 -0700 From: Steen Hegelund To: Russell King , Andrew Lunn , "Heiner Kallweit" , "David S. Miller" , Jakub Kicinski , , , Rob Herring , CC: Steen Hegelund , Bjarni Jonasson Subject: [PATCH net-next 1/4] dt-bindings: net: Add 25G BASE-R phy interface Date: Fri, 11 Jun 2021 14:54:50 +0200 Message-ID: <20210611125453.313308-2-steen.hegelund@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210611125453.313308-1-steen.hegelund@microchip.com> References: <20210611125453.313308-1-steen.hegelund@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add 25gbase-r PHY interface mode. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Reviewed-by: Andrew Lunn Reviewed-by: Russell King (Oracle) --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index d97b561003ed..b0933a8c295a 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -98,6 +98,7 @@ properties: - 10gbase-kr - usxgmii - 10gbase-r + - 25gbase-r phy-mode: $ref: "#/properties/phy-connection-type" From patchwork Fri Jun 11 12:54:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steen Hegelund X-Patchwork-Id: 12315677 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E80EEC48BE0 for ; Fri, 11 Jun 2021 12:55:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D576F613D3 for ; Fri, 11 Jun 2021 12:55:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231689AbhFKM5K (ORCPT ); Fri, 11 Jun 2021 08:57:10 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:36544 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231614AbhFKM5G (ORCPT ); Fri, 11 Jun 2021 08:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1623416109; x=1654952109; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O16s45fodtBhmTEluLReNjsavw6a6lLyxUkLSsd4V0s=; b=EdWhsnh3CZQXsVv03URngeDpClRvj+HIyB2QhPjW5dM/5s9tvqHB7UbT ki3KGjcHcbSk1NF2NIOQsXCb4X++0VR/2aylCA6v1nH0XlqzqBq01Xdc7 NfJhmbP5kEjWh6vAYvfgwZtnb058hk8QoO/ypGI/9v0a5LJFuEKrREM0B F1xuYffbUd8mt/SZNS2xBww+oIND7lfRqGNy8BY8GRNy+sJ8zi/1Gpt8Q 28tqu7tUBi6gOGv7saUjQQWrtKg8rbdA68XFNvK5mXPFzS78aO5N5a83U e7RdfcJPAhIbLLxA/WGeOwGJvlzfUmajXYgZiPVyXe3UN9lvYcCPvaHQh w==; IronPort-SDR: EnsiYOCgl4niRH8CDE9gAsz5S7WE28TM5e9xnTAtv8QyyUEYab8IqxRx38go8l3DPQQq1Vepuw eOICtjFlF9aU0NVpwh6Qi24ezHJemasW5SLx5aM+M+J0MoR332bV06XD7TuDoHF+Z/jEYtTJzY NPpCeS6liWTvPkl5av6pQyFrx1WwnV3ZHfK1ymVzctor350IGtxdS5KGwDPwYvwQDb5rS+zx6Q JAnaxSRrh66SZHlzrkpSkxnQhLf+YUXUN8+cKECv7i557I1nw/mcQCv/Aq61Fj2lVF5jCvj7Pz 9f8= X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="131631333" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2021 05:55:09 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 05:55:08 -0700 Received: from den-dk-m31857.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 05:55:06 -0700 From: Steen Hegelund To: Russell King , Andrew Lunn , "Heiner Kallweit" , "David S. Miller" , Jakub Kicinski , , , Jonathan Corbet , CC: Steen Hegelund , Bjarni Jonasson Subject: [PATCH net-next 2/4] net: phy: Add 25G BASE-R interface mode Date: Fri, 11 Jun 2021 14:54:51 +0200 Message-ID: <20210611125453.313308-3-steen.hegelund@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210611125453.313308-1-steen.hegelund@microchip.com> References: <20210611125453.313308-1-steen.hegelund@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add 25gbase-r phy interface mode Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Reviewed-by: Andrew Lunn Reviewed-by: Russell King (Oracle) --- Documentation/networking/phy.rst | 6 ++++++ include/linux/phy.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Documentation/networking/phy.rst b/Documentation/networking/phy.rst index 3f05d50ecd6e..571ba08386e7 100644 --- a/Documentation/networking/phy.rst +++ b/Documentation/networking/phy.rst @@ -292,6 +292,12 @@ Some of the interface modes are described below: Note: due to legacy usage, some 10GBASE-R usage incorrectly makes use of this definition. +``PHY_INTERFACE_MODE_25GBASER`` + This is the IEEE 802.3 PCS Clause 107 defined 25GBASE-R protocol. + The PCS is identical to 10GBASE-R, i.e. 64B/66B encoded + running 2.5 as fast, giving a fixed bit rate of 25.78125 Gbaud. + Please refer to the IEEE standard for further information. + ``PHY_INTERFACE_MODE_100BASEX`` This defines IEEE 802.3 Clause 24. The link operates at a fixed data rate of 125Mpbs using a 4B/5B encoding scheme, resulting in an underlying diff --git a/include/linux/phy.h b/include/linux/phy.h index ed332ac92e25..70a1399ff454 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -112,6 +112,7 @@ extern const int phy_10gbit_features_array[1]; * @PHY_INTERFACE_MODE_RXAUI: Reduced XAUI * @PHY_INTERFACE_MODE_XAUI: 10 Gigabit Attachment Unit Interface * @PHY_INTERFACE_MODE_10GBASER: 10G BaseR + * @PHY_INTERFACE_MODE_25GBASER: 25G BaseR * @PHY_INTERFACE_MODE_USXGMII: Universal Serial 10GE MII * @PHY_INTERFACE_MODE_10GKR: 10GBASE-KR - with Clause 73 AN * @PHY_INTERFACE_MODE_MAX: Book keeping @@ -147,6 +148,7 @@ typedef enum { PHY_INTERFACE_MODE_XAUI, /* 10GBASE-R, XFI, SFI - single lane 10G Serdes */ PHY_INTERFACE_MODE_10GBASER, + PHY_INTERFACE_MODE_25GBASER, PHY_INTERFACE_MODE_USXGMII, /* 10GBASE-KR - with Clause 73 AN */ PHY_INTERFACE_MODE_10GKR, @@ -223,6 +225,8 @@ static inline const char *phy_modes(phy_interface_t interface) return "xaui"; case PHY_INTERFACE_MODE_10GBASER: return "10gbase-r"; + case PHY_INTERFACE_MODE_25GBASER: + return "25gbase-r"; case PHY_INTERFACE_MODE_USXGMII: return "usxgmii"; case PHY_INTERFACE_MODE_10GKR: From patchwork Fri Jun 11 12:54:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steen Hegelund X-Patchwork-Id: 12315679 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88EB9C48BE5 for ; Fri, 11 Jun 2021 12:55:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 74411613B8 for ; Fri, 11 Jun 2021 12:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231652AbhFKM5M (ORCPT ); Fri, 11 Jun 2021 08:57:12 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:23995 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbhFKM5I (ORCPT ); Fri, 11 Jun 2021 08:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1623416111; x=1654952111; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=i7uooW7kjebncXi3kdElMhfKYX/VG/ejw92Sdr6yUYc=; b=rpFshZUdbtCwJ3R3tiKou1wmGDIbNSW0S7XZ1Mi82yTBL1U/4xC1CD8z BROHu2DRM9cxrVeNrNx7y7rFokCDIdhl2oMaZP3wz5bC3U6bCnpmlpSzR XfPVsqn2EN82KbDfzd1L4p+p4yj24fWCKTvKFtd9dNDhPMHrgMdfTqmE5 pFoVTMoIySKOMHZieUF558s8Xp7HusUC8jkqHjvyiB7ENB3i4gHd6JeDc ICW5jPOCgd7QFASWliD0vqJ7WQAQa272ctJ30nWyo6BEHDtbysn6nb35j Uq3Ow2M41mujwQt3PRpRHL+8f+PW5a9MFKaRkJCzmT9074jx2Z5et6NrO g==; IronPort-SDR: wx1Yf+ux0b5mJWDLaTGZlNEVgHjWZCwq/eiNHazKIe6bd4Ss+rEM68EQgnpLwYiIKh9bAqqjXO Pp6UaqAI9Vcy2RQq2SKxTqXghxIQpyXfY70wthr0ZONkhmAPZhsxpDufI37LJ+OPpRWV83ANDq 00Gq1SmrMBIevbG1ACmvkBXIcljOdLzdQKE7zlyPv1BxVENu9BgJdoMtb6vf+n9JVWdQYikMVV a7y9oHdYT7UOQtqtqVygw8k8RFZyBVPe+mFM4ufZO1bE3oU6/njVxYh0FhXrP2Th0+BBJNZh7v elE= X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="124398244" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2021 05:55:11 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 05:55:10 -0700 Received: from den-dk-m31857.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 05:55:08 -0700 From: Steen Hegelund To: Russell King , Andrew Lunn , "Heiner Kallweit" , "David S. Miller" , Jakub Kicinski , , CC: Steen Hegelund , Bjarni Jonasson Subject: [PATCH net-next 3/4] net: sfp: add support for 25G BASE-R SFPs Date: Fri, 11 Jun 2021 14:54:52 +0200 Message-ID: <20210611125453.313308-4-steen.hegelund@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210611125453.313308-1-steen.hegelund@microchip.com> References: <20210611125453.313308-1-steen.hegelund@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add support for 25gbase-r modules. This is needed for the Sparx5 switch. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Reviewed-by: Andrew Lunn Reviewed-by: Russell King (Oracle) --- drivers/net/phy/sfp-bus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c index e61de66e973b..1db9cea13690 100644 --- a/drivers/net/phy/sfp-bus.c +++ b/drivers/net/phy/sfp-bus.c @@ -392,6 +392,11 @@ EXPORT_SYMBOL_GPL(sfp_parse_support); phy_interface_t sfp_select_interface(struct sfp_bus *bus, unsigned long *link_modes) { + if (phylink_test(link_modes, 25000baseCR_Full) || + phylink_test(link_modes, 25000baseKR_Full) || + phylink_test(link_modes, 25000baseSR_Full)) + return PHY_INTERFACE_MODE_25GBASER; + if (phylink_test(link_modes, 10000baseCR_Full) || phylink_test(link_modes, 10000baseSR_Full) || phylink_test(link_modes, 10000baseLR_Full) || From patchwork Fri Jun 11 12:54:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steen Hegelund X-Patchwork-Id: 12315681 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E91DDC48BD1 for ; Fri, 11 Jun 2021 12:55:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0EFF613D3 for ; Fri, 11 Jun 2021 12:55:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231740AbhFKM5Q (ORCPT ); Fri, 11 Jun 2021 08:57:16 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:36544 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231691AbhFKM5L (ORCPT ); Fri, 11 Jun 2021 08:57:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1623416114; x=1654952114; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OfWnwH1Dn3KlOhkGvla/AbXSuETpsXr9bzDPCtdygMA=; b=K4AYN0SecCSlIiM0ES1VZ1BUZ1G132t0xt0cO4RzXRSpjBmSHGw7KaC+ O54fznfyCKD8yFV0qESKy6lrhQXaxBEeGYK1ihO/8Xp0pj/DVePKA3Ueh zaaoMtrHzu4lopiRYX0b12u36ZJQyNUPaVRtOPBkyJpxZ1YIS7m5LvHoL rw3ScJEJnvydKYEyJrki6l6PaHoVqNQMlEV+Kc3MkmCh+wzrwJMuTzRbl U1SRBrlsNjSRAI595kaEfE8rIlbtYgGgoR/JuYfTEzVF+lta7yfPhfAer 7gRsU2Zm/47w3tOm62PVTjP1dMQheyWisP04npLLQg8geWpZ3pC+pFsU1 Q==; IronPort-SDR: ABhgUrNcA1VGb6gS3LPJwSnAdU/9kXmZHdQLQytcCEvZ+HeB+f2DiFBi/P0SUvK+AKRMyvSaSy fMcrLM+LLsqltJlg59/lwuMCcROjGSfNr21kxibXQVgI9W/j54d8yAn0xaWcfYU11GIn1Xev6c MFnUKhoeaUGAlskYOgEDq5bWJlWbkw5Q7HH//C7haS4vta6ia/v7lMht3RePksvNwGC1OsPDwc N2pNOhUJMEkOU6YPklu7DI9oGfQ2fqZS4cWnPeIfMoGihy+QJLpwFaXpQ8Z9mBPkYjDvSllv/4 WvE= X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="131631342" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2021 05:55:13 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 05:55:12 -0700 Received: from den-dk-m31857.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 05:55:10 -0700 From: Steen Hegelund To: Russell King , Andrew Lunn , "Heiner Kallweit" , "David S. Miller" , Jakub Kicinski , , CC: Steen Hegelund , Bjarni Jonasson Subject: [PATCH net-next 4/4] net: phylink: Add 25G BASE-R support Date: Fri, 11 Jun 2021 14:54:53 +0200 Message-ID: <20210611125453.313308-5-steen.hegelund@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210611125453.313308-1-steen.hegelund@microchip.com> References: <20210611125453.313308-1-steen.hegelund@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add 25gbase-r interface type and speed to phylink. This is needed for the Sparx5 switch. Signed-off-by: Steen Hegelund Signed-off-by: Bjarni Jonasson Reviewed-by: Andrew Lunn Reviewed-by: Russell King (Oracle) --- drivers/net/phy/phylink.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 96d8e88b4e46..b1b9bb30d5b5 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -311,6 +311,11 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) phylink_set(pl->supported, 5000baseT_Full); break; + case PHY_INTERFACE_MODE_25GBASER: + phylink_set(pl->supported, 25000baseCR_Full); + phylink_set(pl->supported, 25000baseKR_Full); + phylink_set(pl->supported, 25000baseSR_Full); + fallthrough; case PHY_INTERFACE_MODE_USXGMII: case PHY_INTERFACE_MODE_10GKR: case PHY_INTERFACE_MODE_10GBASER: