From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 730E843FC9; Tue, 7 May 2024 14:46:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B914433EE; Tue, 7 May 2024 14:44:49 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2046.outbound.protection.outlook.com [40.107.101.46]) by mails.dpdk.org (Postfix) with ESMTP id AB1E3433B9 for ; Tue, 7 May 2024 14:44:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dTjUyyuNXmJGbm4b3CE5V6xuP7eRK6p93IcNLY2WAy3noc2+uARXzeYMSeimN/VEPReQ7b89iXFhm8sFXYnSazHLuYIxSj/z8+ywp1W4/BviTPhTlK+SOdms3LEUaMhqhr/iXQrjyncrEL+pbWDx7ZNUIoslvzLBXW1JQ2/Jpk15/ZVj09dJMMRyOaPKX9jmLY/SHcGoAmxsOJs1C6NTpxchlUbfhXmFL0feRoCA6/b/mzsEzHAC1h4d1t3eQG7KyT80gLgYm14zyJA/mzPmSKtMYXn9rO9XEOAYvG9kjDsqrjnUenbHXAZT1HWklmR1P+YVk7wZoprjwI49H6rJrg== 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=1B2FkfTOPTXoXK5rWsXcFiCSMPUSU596Rx2AGqYacKk=; b=aA1s9Q89T2YO467bxs5jvAJIVmzzV/nWGYB2pTe2LDw1L/yuUGHV8jRDZ/S7EH+YlvvuPtYOVCPjVz+YgKxzhBQZM0UDbSzRpqU9ymnR7OsnCcZDzx1WcWs+hA3Ldv88IyFxn4XGCOp7LYIsyoEhdNgc/2LXFUmvNMaIPxu1tZQQYzLvDLC3yFVBOc+YiB9YLht56JOBkIn95349iBERBivpE6JCS7/PXvJGd/DCXJqBF49OEoFe1hAxRL8PBs8+IbdbIMkzsBSu3jjAwdCLwZFQO0MztV6H2ItuJNNIwJPHERyOT9T7N+lgzJJ/ZOnQGT2AC4zvrHWmNHNIXLrvVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1B2FkfTOPTXoXK5rWsXcFiCSMPUSU596Rx2AGqYacKk=; b=mNuALAW5Lx9ZJcIURVCk/slgkKjhrTkEcRwqMO08jUfLoEtQ9AjqpRC4zsS4hsQtogR0PK464uQD68brVaxDUbSsIuBliZ3Ezmo+Hly84CiCTdi5kWfI05pqpK7n+Rv0K3V8wX1fWzbN2qzJCX8LkglnRuOmgY8to8KtoM3UFJ0= Received: from PR2P264CA0010.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::22) by IA1PR12MB7688.namprd12.prod.outlook.com (2603:10b6:208:420::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Tue, 7 May 2024 12:44:44 +0000 Received: from SN1PEPF00036F42.namprd05.prod.outlook.com (2603:10a6:101:0:cafe::4) by PR2P264CA0010.outlook.office365.com (2603:10a6:101::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Tue, 7 May 2024 12:44:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SN1PEPF00036F42.mail.protection.outlook.com (10.167.248.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 12:44:37 +0000 Received: from cae-Lilac-RMB.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 07:44:31 -0500 From: Venkat Kumar Ande To: CC: , Venkat Kumar Ande Subject: [PATCH v2 24/25] net/axgbe: extend 10Mbps support to MAC version 21H Date: Tue, 7 May 2024 18:13:04 +0530 Message-ID: <20240507124305.2318-24-venkatkumar.ande@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240507124305.2318-1-venkatkumar.ande@amd.com> References: <20240412125013.10498-1-VenkatKumar.Ande@amd.com> <20240507124305.2318-1-venkatkumar.ande@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00036F42:EE_|IA1PR12MB7688:EE_ X-MS-Office365-Filtering-Correlation-Id: 47e3581d-70d6-4ecd-9358-08dc6e9374ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|82310400017|376005|1800799015; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?jsfZPqY54fdAlJ7ELeZir/vEah60R4OIifyxxjmV/+9JwLkQSNNlw0DdliPe?= =?us-ascii?Q?3PuB2tWYmymMesyKAq8/sHbhgmLCDuIWHtuB6l5FYkKcITLMQ0mKAIJUaHRH?= =?us-ascii?Q?p33t4MopiEN/KABMA4SGzWasqj+7VIzf85fcbYFM7jsIehht7dAgRzWY/F1V?= =?us-ascii?Q?gowTicLT42LVfM0vWspIUlyMRII+ph+eVEn5kyQNe6RBkmOKt3B3yX3v/ARv?= =?us-ascii?Q?fpJElBakHYY7trvJCuN078k+0clWZ4kHqPW4qsztjkL5ls29foUbse9WPRPo?= =?us-ascii?Q?9V0o6BTHdnw/hBr3AvbzXb4GPLRMyZsq6dCogyAb+IR3jBeRsysaz8wltfPx?= =?us-ascii?Q?1EIDQ2DzW93jp962wHH/uOQxa1HToWJHENIG6sz8qgVUVdcSCZQYLxg+fTeI?= =?us-ascii?Q?W1EGW2xv3YzOhhTdWhFLzGQELc4zb4AhM1dgOCQsb0+jw29Rxr/2t9i1Hnz3?= =?us-ascii?Q?JBi/P1P/5q7vDmqsJzmw2Ajxf8XfQeg1o+6T/AvwWeBaC8LwUqn58uh8VfBf?= =?us-ascii?Q?IPqYLvX2Yfe1VDORHnFesZ6AtN5IOqA2HeJo0x2cCfF5PZCkFuyRjeckXT9w?= =?us-ascii?Q?mUer9B9dIjhJr/TqKghiiX91v6/P37Zl7gprPHiEFeOgY7DUJd2zij+SUdQi?= =?us-ascii?Q?V6u8Np6OmKO+/TrrqnW4tuGVD9ObePvn4+POeW/5My4DwohUEM7V7Rv/WC9T?= =?us-ascii?Q?L7zr3UfabR/BgyfFoyJV612zKd+yaTQ73oXo4015jF5pYu3R1wBiYoK7zTCT?= =?us-ascii?Q?FKO87RKIWskNK52YRu1JvuK34QBTU5JE40ZHEvZTC6JYVb72v2s2Fy5tUoFK?= =?us-ascii?Q?gGAnkqcyN9ntTIRkeUvsAOhBVPYw1aLwgvF+RbjXKADoeOYc0Ag4X0KkqntW?= =?us-ascii?Q?KEhQ9XZJGaPtJw05yqZZImHNYSaoGeRQ4FVQt3FLI9P4YMpLh+R79ZfXYtFm?= =?us-ascii?Q?rZFtKOh0Yz1yXeMe5dkW/f31HCxCKA1IzqJg9SNDRGINdAIQe23gxoxlhbSr?= =?us-ascii?Q?cqk3FHnVVA3Hr1H5oZ57OtMcF5aECkUJORYWlWI+8QAJpbLbokUS4r/+EdHY?= =?us-ascii?Q?6fDDx6767X+gvuJ7xeaROY6lvMKqmI7tkfm3xMfHvMP6gIViyF4Q5Gnm6OP3?= =?us-ascii?Q?DH/9reer4D/ph/gDARJ8+vp1CCj7fH7BuDrWCrO1fLmmbUirIt8YnMHIpLBb?= =?us-ascii?Q?uZIvr2TqtN1Fj29KuAI3wn5v3Bm8C8l5pu31Bbt4A5SzqmAaxerU/QmlXxb1?= =?us-ascii?Q?At7WDiqceMdKHPxZk1RYOwljyclWSaluyXDwtRgS/X7NfRifYVWAetTw/AlJ?= =?us-ascii?Q?IRv5nzJYRFrdSjipCsnZyX3HCDWeCvj8rLXbm9irWhMQhdPn3NH8H9BTk7Fs?= =?us-ascii?Q?I5SK+sZ6R6t3wT3Ut4e2svRyMXfg?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(82310400017)(376005)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 12:44:37.9895 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47e3581d-70d6-4ecd-9358-08dc6e9374ec X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF00036F42.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7688 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org MAC version 21H supports the 10Mbps speed. So, extend support to platforms that support it. Signed-off-by: Venkat Kumar Ande --- drivers/net/axgbe/axgbe_phy_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/axgbe/axgbe_phy_impl.c b/drivers/net/axgbe/axgbe_phy_impl.c index a1c42b7dd4..d41c6e9bc7 100644 --- a/drivers/net/axgbe/axgbe_phy_impl.c +++ b/drivers/net/axgbe/axgbe_phy_impl.c @@ -2012,9 +2012,9 @@ static bool axgbe_phy_port_mode_mismatch(struct axgbe_port *pdata) struct axgbe_phy_data *phy_data = pdata->phy_data; unsigned int ver; - /* 10 Mbps speed is not supported in ver < 30H */ + /* 10 Mbps speed is supported in ver 21H and ver >= 30H */ ver = AXGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); - if (ver < 0x30 && phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_10) + if ((ver < 0x30 && ver != 0x21) && phy_data->port_speeds & AXGBE_PHY_PORT_SPEED_10) return true; switch (phy_data->port_mode) { -- 2.34.1