From patchwork Wed Dec 9 05:04:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavana Sharma X-Patchwork-Id: 11960319 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 3CF98C433FE for ; Wed, 9 Dec 2020 05:06:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 02A23206FB for ; Wed, 9 Dec 2020 05:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726444AbgLIFF6 (ORCPT ); Wed, 9 Dec 2020 00:05:58 -0500 Received: from outbound-ip23a.ess.barracuda.com ([209.222.82.205]:46478 "EHLO outbound-ip23a.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbgLIFFw (ORCPT ); Wed, 9 Dec 2020 00:05:52 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by mx1.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 09 Dec 2020 05:04:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OtoqLxmRKWNkoSunDtL9ky58xiMJDksruabyHuiaAr4luXHhUlq7w7Vw4in0P8M4OtVMa1z9+aFgffOmMfbqrvy2tboYzkYluJLMMlqnInF/SJO/+qHkL+6eMwQtTnEtJg8YS2KI4KQ2ooLOQgbrCI1iAQ8A2KlZtjupKGfw5ZyzJpQbFvNAnls8O+53Mn8jo9mp76tojMc5fv4KeZJmqGhAfq1xiacb+D72OeroglOUNdOZ7mywbl6Wq2tKvLFT/X3GZ5LJgt4QEbNEhOVzw8knjlESRx9Xd5HB3B/+UWnmzEx2opvrq9D2VP3itQWJcq8SFumvJ/Xke3RiPDDLIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEtOKwi4P4PV69Z8JXFRNmuuo0X6owQYD5Iv66lSqF4=; b=cVKCRgzjh+Fzul2YFjRcUNprZAWZGyqgVN8kDUKWGVLhwdyu9sY+DuSZjHOt+DPquYsWC2UMc0iTX6J3btV6BW/9SBSh71FOdwJl8+yE0tcOkHR/AxkNrYd4pso6HiQogVqezv8WpxunaRYGlE4TFepXrizs9px80o92v1aTkrXIw9/DcnGCdSLaPdZ9gCYbPHL9l+nUXbZnpKuebaV2IKcBdjSVAIY4mb7DVcJ83FaCq+32hsZA7xNWjknQDDzj+7S/cczcphE76rG5kbBxglwLKUFu4BYRdT4Iqf8q3uPlKZJY5RDzgfiwt5YJ7eAvGPezAV7scrUPhxPlJuxpRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=digi.com; dmarc=pass action=none header.from=digi.com; dkim=pass header.d=digi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digi.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEtOKwi4P4PV69Z8JXFRNmuuo0X6owQYD5Iv66lSqF4=; b=rhPr4rYMQF1ocHhBx6cV/KgDb7qBSbdl/B4TMoz2XX3wojrAzbpqVEyex1nbjShSvsrAsh3Q8S5KPf7fF+TMZKqx/WQfTyTfSK3HYTQoJAAaJ85x/fyvABmnBhd0lf7h1PgMQ2v6ilNpZQe+kk9Tz0k2fZP+Uq84ddN4zS33pq4= Authentication-Results: lunn.ch; dkim=none (message not signed) header.d=none;lunn.ch; dmarc=none action=none header.from=digi.com; Received: from MN2PR10MB4174.namprd10.prod.outlook.com (2603:10b6:208:1dd::21) by BL0PR10MB3441.namprd10.prod.outlook.com (2603:10b6:208:7f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Wed, 9 Dec 2020 05:04:48 +0000 Received: from MN2PR10MB4174.namprd10.prod.outlook.com ([fe80::c8b6:2021:35a0:2365]) by MN2PR10MB4174.namprd10.prod.outlook.com ([fe80::c8b6:2021:35a0:2365%9]) with mapi id 15.20.3654.013; Wed, 9 Dec 2020 05:04:48 +0000 From: Pavana Sharma To: andrew@lunn.ch Cc: ashkan.boldaji@digi.com, clang-built-linux@googlegroups.com, davem@davemloft.net, devicetree@vger.kernel.org, f.fainelli@gmail.com, gregkh@linuxfoundation.org, kbuild-all@lists.01.org, kuba@kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com, marek.behun@nic.cz, netdev@vger.kernel.org, pavana.sharma@digi.com, robh+dt@kernel.org, vivien.didelot@gmail.com Subject: [PATCH v11 2/4] net: phy: Add 5GBASER interface mode Date: Wed, 9 Dec 2020 15:04:23 +1000 Message-Id: <7d0e7609149c4e9c3295eff3323fdea92a4abc89.1607488953.git.pavana.sharma@digi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Originating-IP: [203.111.5.166] X-ClientProxiedBy: SYXPR01CA0135.ausprd01.prod.outlook.com (2603:10c6:0:30::20) To MN2PR10MB4174.namprd10.prod.outlook.com (2603:10b6:208:1dd::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (203.111.5.166) by SYXPR01CA0135.ausprd01.prod.outlook.com (2603:10c6:0:30::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 05:04:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ad650fb9-62bf-4870-d961-08d89bfff3bf X-MS-TrafficTypeDiagnostic: BL0PR10MB3441: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hXStCTWKARb0GCMAjja9WVATqmTsczjJHCWPQZhLOU7usBBG+KjUpL8zmn0M6+JsPyMPX0g/IEOpzKugZ6Wg4hX0Rr3njSX3pnkr+gIijUQ2mGaRuZpmIYx7AMIx7hYfLUMb01pBTMSlM/OU8TQgiyKwj9pCbhghZs8LtVhmFa1MR9Cjsumdw1zpGaW73AcMQRCLNA1p1nk/zL9wlyTfq/G43x2mcQWVkSSonZ6r+KUb+ir24285D8Ap+2YQzenrVEl/xDJUb1Q1f5jKLXUDp0JyY6fsdZlrlRz46Jc4WDqJ/48ZU+kDTHJ87SmiLf9376luh8GQRdZyo6rBWivkAvSOSxYlgoVgg/Qlvo+lyep95mpIZKITsSp+r7SpTw7LB9WmUlKCr+ChLY8/qqLe6eCRy4ctKeX8ywWCdeIN4rc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR10MB4174.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(136003)(346002)(36756003)(52116002)(34490700003)(956004)(2616005)(508600001)(66556008)(26005)(66476007)(6916009)(86362001)(66946007)(6666004)(8936002)(8676002)(4326008)(6486002)(16526019)(186003)(44832011)(69590400008)(5660300002)(6512007)(6506007)(2906002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: jiKcZDEGpKNNelCBuiVZe3BYkHcDGx4z2pS7blHkjSxWUKEryyVGyEx+/U7oTz5tnvo/hgos1yM6U/Dkv+LkzijpNc9AH8TykK6mRQlxHMt4UThlDrKfkZ193pbgTmqhuwJ/BOS9aJ+g7a515CukDfaGOoR2rZY1ZUhOJHiaINP4TmyreTLdv10BcA7lsiBqOWd6mqIcO74jgQqVfUeKWuMivSf01e3r43FUjn6v8eH5AgytNdbFQIytAwsSsfcjeu2CgrEUxFq7bK7DXZbYKgITDGCHccoQuGbwaywOECW5RDj0Kq0z5on5nYF6r0f5zK6c1HG5/XI2OGEuMDJZw+thg+T5OeCBXOhgEN2yzd45YIMKMrBK/S2gKhX4owMdxJ8mDb+MaiuhHtH+pPhcfNjwCoSwfnn51pYZGirTmxB4V2Tul8h8n56G9yIDDid0olFw0D8IMDpE0jRHHXA/U4OOQ/t6Jm7iJRGzRQ481Dj63FXVc5z3JRpzf+TgX8QbGPmQPMDOXQ47mGg4HMriNJ9sHCaPPpdzqwT44VfSxWnNE6purkov5AYHs1hr1/vjlFN/aGzEA45+dRrhkyrMqJejsPKSc0FFB7bEuYA1vq/zJZboIy8BWJUB0NFZ+bRPSAGLOmJ2Fatu30vfUFNXwGUs3otUHEa5Xy1KyE06nUnaDgzzY6UiPOFZTn59UrK53hkk5mbbgUqEUdj/yRcCnPpEQ8IfsiediNx+wIQdUGwIJmvZSRBDBHyMp9WYYxqF9VNUQQrDaL+FmtQ0awmVbanft7dd0yOz8tVwCGJIKYkiUGVkBPa88N2jiZAkToVYXXuih/uVaj2dq0xXNTF70tRJRuRowVRZRBEMhmJK4OlsXAy3klKz2LI1oaNnHelSkeZiTywpj8VdC5RcSodu6v95+BJPaT/c2OntM641ml/naOh/VIy4JYjUauuKSTSEQzZcFyYUzsta5Knc1cisRHUUFmtoMFh2zIYmLkvWqhbTwfhyUakI+rhT9oRrMwZO X-OriginatorOrg: digi.com X-MS-Exchange-CrossTenant-AuthSource: MN2PR10MB4174.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 05:04:47.8997 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: abb4cdb7-1b7e-483e-a143-7ebfd1184b9e X-MS-Exchange-CrossTenant-Network-Message-Id: ad650fb9-62bf-4870-d961-08d89bfff3bf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ybaOEYO+zzQ0BwJom21TGaAuUFFGugSuoETiwmRkos1R3D2YwRybk5VCyhVzp033wYH7r95kF4709VWn27Z0pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR10MB3441 X-BESS-ID: 1607490288-893000-4814-29180-1 X-BESS-VER: 2019.3_20201208.2330 X-BESS-Apparent-Source-IP: 104.47.59.172 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.228709 [from cloudscan11-63.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 MSGID_FROM_MTA_HEADER META: Message-Id was added by a relay 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS112744 scores of KILL_LEVEL=7.0 tests=MSGID_FROM_MTA_HEADER, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add 5GBASE-R phy interface mode Signed-off-by: Pavana Sharma --- include/linux/phy.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 56563e5e0dc7..8151e6ecf1b9 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -106,6 +106,7 @@ extern const int phy_10gbit_features_array[1]; * @PHY_INTERFACE_MODE_TRGMII: Turbo RGMII * @PHY_INTERFACE_MODE_1000BASEX: 1000 BaseX * @PHY_INTERFACE_MODE_2500BASEX: 2500 BaseX + * @PHY_INTERFACE_MODE_5GBASER: 5G BaseR * @PHY_INTERFACE_MODE_RXAUI: Reduced XAUI * @PHY_INTERFACE_MODE_XAUI: 10 Gigabit Attachment Unit Interface * @PHY_INTERFACE_MODE_10GBASER: 10G BaseR @@ -137,6 +138,8 @@ typedef enum { PHY_INTERFACE_MODE_TRGMII, PHY_INTERFACE_MODE_1000BASEX, PHY_INTERFACE_MODE_2500BASEX, + /* 5GBASE-R mode */ + PHY_INTERFACE_MODE_5GBASER, PHY_INTERFACE_MODE_RXAUI, PHY_INTERFACE_MODE_XAUI, /* 10GBASE-R, XFI, SFI - single lane 10G Serdes */ @@ -207,6 +210,8 @@ static inline const char *phy_modes(phy_interface_t interface) return "1000base-x"; case PHY_INTERFACE_MODE_2500BASEX: return "2500base-x"; + case PHY_INTERFACE_MODE_5GBASER: + return "5gbase-r"; case PHY_INTERFACE_MODE_RXAUI: return "rxaui"; case PHY_INTERFACE_MODE_XAUI: