From patchwork Thu Jun 13 13:20:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?S2FtaWwgSG9yw6FrICgyTik=?= X-Patchwork-Id: 13696776 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2061.outbound.protection.outlook.com [40.107.8.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10A09146D51; Thu, 13 Jun 2024 13:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284884; cv=fail; b=sy6L4GFC0IrdzqfX9ebuxQ+fGrzdKoTSrqmcUlocb7IbFnFY3me1k8yH8d7OPWT+1HxgW1qj6kgmsEB/Z8lxfFNoYrgdHbDkQg9XfZKYS3xoR2f4XaZlKDK4w0Sd/rDBRR99vSDHt3IanR/x37GlhpzmHpNXJvANKNMiZXNIjSI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284884; c=relaxed/simple; bh=AZ06KBNE2fF/6w81AnnwMxflls9XuUXNo+5aPZow2DE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M6Ac1AGy2fP2g5rCDmLMeWw5o/z3aLoDMe8PR3/ev7SEvIVUW+AHniYsJ4+Lk8uU0adfQm/SHX9ryb5UTmW11p6GqyLebAKRYbhMvoE7CElRn5pS3sGKct3IA9btQDRPhHV8noZlDVZdYi0ktyrsMB7beT7iu+n66NDCsJMo7v4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com; spf=pass smtp.mailfrom=2n.com; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b=alLavymb; arc=fail smtp.client-ip=40.107.8.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=2n.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="alLavymb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=em0MsV48FH5f5xPf7zURAKqekSmUXf+KVjNJDGT8+cDvSQ4GPD6eZEmYHqtknjFluOLBu/eb1CNczZoX7BpZRN/Cszh8YugaoRaoXGYNSNalj9FtbNo3pXCVEoVpZdLOTPouF6oxXCt0uzW15y+8upS+cv0Z07FwJAH2xi30MFQeA38YVmA8RGLgWObpUGnJBCi4sgFTxcHdF+dto5Qry2kcQ4jg9k5f8s4udqMmTW3y7pRlG+543UQVjueNfH9g8RvYeIyUHRT7hs0DT7tYNE1KIsnA1wVsBptv4w3chIn3wi+YPGSwSq9v75YZo+DQ/QxfyVG7rgGAwqIEJ1KEEQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4Qk5HkWquX5hnH4oz0TZDo8Tx+l3Dq48d2ORsvVXy1U=; b=f0R4XWeEtwmi/+9H4Y1rl5C86WbGoTblUC81ost+MiTv36PukIBi8ZimVj/L4RKh3m/kcYR/MpReEQ1SqmBdjdFFq9HjWxfZ8NRyqaOHLs9H1lr8WZaSB3paRTccl6854O7QRkQpgK4lcdGQ06PA7kXdu1Nv1HF6Czv5lpT3dNeDcyAZYOLkd0/Z2YjMNZtXvjSPWqSH2pj3YwDb7lHXRRrqlDbuUgTX16IZ8vT2KDKit8aVR2HJ7pSk/TLW/24LtnS/0Yjv3gBkxGqtGdUamV6THs6VxK2qzRtWjQF+t+ICdXvbqIQ6Je5RBiI/O4Vt6kz6DtGzbzrm34RRe1NUnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=broadcom.com smtp.mailfrom=2n.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4Qk5HkWquX5hnH4oz0TZDo8Tx+l3Dq48d2ORsvVXy1U=; b=alLavymbZ0n4GZp7t3axX6qfRU79IQSfHilEMrsHTxQd8rrdMfsvvw8WaIWwWtuvb86fzLOG2HwEHaEmPJlgODd9+pB0V5+Z/EVo0++qcwkBjNrJobUlpIqZ5VKNm9eBISdvTV6nlCjSS5fxw0J6XuPo+eTT2JTzjxMhPbqRysQ= Received: from DU7P195CA0007.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:54d::26) by PA4PR02MB6927.eurprd02.prod.outlook.com (2603:10a6:102:108::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24; Thu, 13 Jun 2024 13:21:17 +0000 Received: from DU2PEPF0001E9C5.eurprd03.prod.outlook.com (2603:10a6:10:54d:cafe::93) by DU7P195CA0007.outlook.office365.com (2603:10a6:10:54d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24 via Frontend Transport; Thu, 13 Jun 2024 13:21:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=2n.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of 2n.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DU2PEPF0001E9C5.mail.protection.outlook.com (10.167.8.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Thu, 13 Jun 2024 13:21:17 +0000 Received: from pcczc3457tyd.2n.cz.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 13 Jun 2024 15:21:16 +0200 From: =?utf-8?q?Kamil_Hor=C3=A1k_-_2N?= To: , , , CC: , , Subject: [PATCH v6 1/4] net: phy: bcm54811: New link mode for BroadR-Reach Date: Thu, 13 Jun 2024 15:20:52 +0200 Message-ID: <20240613132055.49207-2-kamilh@axis.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240613132055.49207-1-kamilh@axis.com> References: <20240613132055.49207-1-kamilh@axis.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: se-mail01w.axis.com (10.20.40.7) To se-mail01w.axis.com (10.20.40.7) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C5:EE_|PA4PR02MB6927:EE_ X-MS-Office365-Filtering-Correlation-Id: f2576ad7-7aa4-48b7-410c-08dc8babb501 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230035|36860700008|82310400021|1800799019|376009; X-Microsoft-Antispam-Message-Info: =?utf-8?q?IELmy696nfw0OHKckvgH3YmB7mxci+j?= =?utf-8?q?wUvQWFoXkzhMqbYN5JJl41W6WgOK0EMLUAlm7F/+6hIw1j7fC6Oz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-8?q?495hIgBEN079+5WF+yHrkrcaqTnDm2eyGWurJQyTeUjJHGdlB8cjJ7ICYGLsVuKO0?= =?utf-8?q?egRvcC3ttb5xggIsC9Rs1/5NbXBqEcgs1Ippt8TsKKisqiB6zPypsaNnmYsb2vrR6?= =?utf-8?q?aoP070mYRa0usDr8Vucc8cqZsxtd11jeAwf9RVhLND/HV/wZyacNfXquW6Hjcj0OY?= =?utf-8?q?J2QbIXobfMRGH/T0LpDutzsGHj91Je8Nhb5/lqBF0+r/AfoxbOxQhUo0R6Jhy2gBo?= =?utf-8?q?lfbu2FJN7TyEZ+5LqWSOE7EppmDfP6m3OREYoNcgOSgiViFcSBYhUIMxb6AMYMV0y?= =?utf-8?q?LfVyhnJ86L6l118lnk4B3zmUz1brzuYMHJFCINNUixomM6MW9/1Q6ItOAxfBgDFeu?= =?utf-8?q?mVZcxH5uNuWEFB35ZOJADWn/ld40dj1+uQ=3D=3D?= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230035)(36860700008)(82310400021)(1800799019)(376009);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 13:21:17.1413 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2576ad7-7aa4-48b7-410c-08dc8babb501 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF0001E9C5.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR02MB6927 X-Patchwork-Delegate: kuba@kernel.org Introduce a new link mode necessary for 10 MBit single-pair connection in BroadR-Reach mode on bcm5481x PHY by Broadcom. This new link mode, 10baseT1BRR, is known as 1BR10 in the Broadcom terminology. Another link mode to be used is 1BR100 and it is already present as 100baseT1, because Broadcom's 1BR100 became 100baseT1 (IEEE 802.3bw). Signed-off-by: Kamil HorĂ¡k - 2N --- drivers/net/phy/phy-core.c | 1 + include/uapi/linux/ethtool.h | 1 + net/ethtool/common.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/drivers/net/phy/phy-core.c b/drivers/net/phy/phy-core.c index 15f349e5995a..4a1972e94107 100644 --- a/drivers/net/phy/phy-core.c +++ b/drivers/net/phy/phy-core.c @@ -265,6 +265,7 @@ static const struct phy_setting settings[] = { PHY_SETTING( 10, FULL, 10baseT1S_Full ), PHY_SETTING( 10, HALF, 10baseT1S_Half ), PHY_SETTING( 10, HALF, 10baseT1S_P2MP_Half ), + PHY_SETTING( 10, FULL, 10baseT1BRR_Full ), }; #undef PHY_SETTING diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 8733a3117902..76813ca5cb1d 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -1845,6 +1845,7 @@ enum ethtool_link_mode_bit_indices { ETHTOOL_LINK_MODE_10baseT1S_Full_BIT = 99, ETHTOOL_LINK_MODE_10baseT1S_Half_BIT = 100, ETHTOOL_LINK_MODE_10baseT1S_P2MP_Half_BIT = 101, + ETHTOOL_LINK_MODE_10baseT1BRR_Full_BIT = 102, /* must be last entry */ __ETHTOOL_LINK_MODE_MASK_NBITS diff --git a/net/ethtool/common.c b/net/ethtool/common.c index 6b2a360dcdf0..82ba2ca98d4c 100644 --- a/net/ethtool/common.c +++ b/net/ethtool/common.c @@ -211,6 +211,7 @@ const char link_mode_names[][ETH_GSTRING_LEN] = { __DEFINE_LINK_MODE_NAME(10, T1S, Full), __DEFINE_LINK_MODE_NAME(10, T1S, Half), __DEFINE_LINK_MODE_NAME(10, T1S_P2MP, Half), + __DEFINE_LINK_MODE_NAME(10, T1BRR, Full), }; static_assert(ARRAY_SIZE(link_mode_names) == __ETHTOOL_LINK_MODE_MASK_NBITS); @@ -251,6 +252,7 @@ static_assert(ARRAY_SIZE(link_mode_names) == __ETHTOOL_LINK_MODE_MASK_NBITS); #define __LINK_MODE_LANES_T1S_P2MP 1 #define __LINK_MODE_LANES_VR8 8 #define __LINK_MODE_LANES_DR8_2 8 +#define __LINK_MODE_LANES_T1BRR 1 #define __DEFINE_LINK_MODE_PARAMS(_speed, _type, _duplex) \ [ETHTOOL_LINK_MODE(_speed, _type, _duplex)] = { \ @@ -374,6 +376,7 @@ const struct link_mode_info link_mode_params[] = { __DEFINE_LINK_MODE_PARAMS(10, T1S, Full), __DEFINE_LINK_MODE_PARAMS(10, T1S, Half), __DEFINE_LINK_MODE_PARAMS(10, T1S_P2MP, Half), + __DEFINE_LINK_MODE_PARAMS(10, T1BRR, Full), }; static_assert(ARRAY_SIZE(link_mode_params) == __ETHTOOL_LINK_MODE_MASK_NBITS);