From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751398AbdADFFC (ORCPT ); Wed, 4 Jan 2017 00:05:02 -0500 Received: from smtprelay2.synopsys.com ([198.182.60.111]:45856 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbdADFE5 (ORCPT ); Wed, 4 Jan 2017 00:04:57 -0500 From: Jie Deng To: , CC: , , Jie Deng Subject: [PATCH net-next] net: phy: add extension of phy-mode for XLGMII Date: Wed, 4 Jan 2017 13:04:04 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.13.184.20] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Synopsys DWC_xlgmac core provides a multiplexed 40-Gigabit Media-Independent Interface (XLGMII, an IEEE 802.3 Clause 81 compliant reconciliation sub-layer) for communication with the 100/50/40/25-Gigabit PHY and 10-Gigabit Media-Independent Interface (XGMII, an IEEE 802.3 Clause 46 compliant reconciliation sub-layer) for communication with the 10-Gigabit PHY. Currently, There are only interface mode definitions for "xgmii". This patch adds the definitions for the PHY layer to recognize "xlgmii" as a valid PHY interface. Signed-off-by: Jie Deng --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index f7d95f6..7b6bfb3 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -82,6 +82,7 @@ PHY_INTERFACE_MODE_MOCA, PHY_INTERFACE_MODE_QSGMII, PHY_INTERFACE_MODE_TRGMII, + PHY_INTERFACE_MODE_XLGMII, PHY_INTERFACE_MODE_MAX, } phy_interface_t; @@ -142,6 +143,8 @@ static inline const char *phy_modes(phy_interface_t interface) return "qsgmii"; case PHY_INTERFACE_MODE_TRGMII: return "trgmii"; + case PHY_INTERFACE_MODE_XLGMII: + return "xlgmii"; default: return "unknown"; } -- 1.9.1