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 X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,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 DB399C2D0C1 for ; Thu, 19 Dec 2019 15:21:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B18BE21D7D for ; Thu, 19 Dec 2019 15:21:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbfLSPVg (ORCPT ); Thu, 19 Dec 2019 10:21:36 -0500 Received: from inva021.nxp.com ([92.121.34.21]:34070 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726793AbfLSPVd (ORCPT ); Thu, 19 Dec 2019 10:21:33 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D82CB2000B1; Thu, 19 Dec 2019 16:21:31 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CAD0C20008E; Thu, 19 Dec 2019 16:21:31 +0100 (CET) Received: from fsr-fed2164-101.ea.freescale.net (fsr-fed2164-101.ea.freescale.net [10.171.82.91]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 3F3F6203C8; Thu, 19 Dec 2019 16:21:31 +0100 (CET) From: Madalin Bucur To: davem@davemloft.net, netdev@vger.kernel.org Cc: linux@armlinux.org.uk, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, shawnguo@kernel.org, devicetree@vger.kernel.org, Madalin Bucur Subject: [PATCH 1/6] net: phy: add interface modes for XFI, SFI Date: Thu, 19 Dec 2019 17:21:16 +0200 Message-Id: <1576768881-24971-2-git-send-email-madalin.bucur@oss.nxp.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1576768881-24971-1-git-send-email-madalin.bucur@oss.nxp.com> References: <1576768881-24971-1-git-send-email-madalin.bucur@oss.nxp.com> Content-Type: text/plain; charset="us-ascii" Reply-to: madalin.bucur@nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Madalin Bucur Add explicit entries for XFI, SFI to make sure the device tree entries for phy-connection-type "xfi" or "sfi" are properly parsed and differentiated against the existing backplane 10GBASE-KR mode. Signed-off-by: Madalin Bucur --- include/linux/phy.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/phy.h b/include/linux/phy.h index 5032d453ac66..ebb793621f0b 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -99,7 +99,8 @@ typedef enum { PHY_INTERFACE_MODE_2500BASEX, PHY_INTERFACE_MODE_RXAUI, PHY_INTERFACE_MODE_XAUI, - /* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */ + PHY_INTERFACE_MODE_XFI, + PHY_INTERFACE_MODE_SFI, PHY_INTERFACE_MODE_10GKR, PHY_INTERFACE_MODE_USXGMII, PHY_INTERFACE_MODE_MAX, @@ -175,6 +176,10 @@ static inline const char *phy_modes(phy_interface_t interface) return "rxaui"; case PHY_INTERFACE_MODE_XAUI: return "xaui"; + case PHY_INTERFACE_MODE_XFI: + return "xfi"; + case PHY_INTERFACE_MODE_SFI: + return "sfi"; case PHY_INTERFACE_MODE_10GKR: return "10gbase-kr"; case PHY_INTERFACE_MODE_USXGMII: -- 2.1.0