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 9FA8A44153; Tue, 4 Jun 2024 14:15:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC21B436CC; Tue, 4 Jun 2024 14:13:47 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2059.outbound.protection.outlook.com [40.107.223.59]) by mails.dpdk.org (Postfix) with ESMTP id 248FB436CC for ; Tue, 4 Jun 2024 14:13:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aAoBl59HhEYbiZqsj6qIpzOLmNbMXmeAYcJCg2FC5I70jVYWOREfBSLkUu5bgPDtgqhKmWmMIpAkqncCovoFbNV1QH2rPxvCXlH6iN40nN75Hsh/bRziw5Gxq24Wziv/j/ipQrkjiOAXuImjZVLH6bPi266Zm0EHHGxUcdmyZARO3mVvzM7FVRV6MCvtTWqzeYg9xDTh85W1h9e5bRZtlSP18dY07srz0SfVW5kfF86U13HJeg1OjHKen/sdFol34qK1pJ8MhkEpEjuNwIfrByBop1WahxwPaRBsNkMeN8HvtVzGPUj2I9y1/XWF34TOQBOA67F9UaqkcuVlWWAItA== 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=YcoSDMKRpZxeS3j+3VyxhteHiQb3G+ksqcDBU7ayicI=; b=jajANYJ/Fc0WCnA831Lv1tTyZe30Dj5Q50VPETJqRWzLjq1KD89Z8Yc240Wl+eN0GfA22L46Uvn7OfRGmu+abwiq/ZcX3RH2dKA0lLs6r+JFtdJElkj1+qG1AgEK5ttKQGFOYzj0QBMxMzHV54ZR+0ul3xxktzQ5BDqTsZQGvINakDIU7GggTZLtQV8cuWABBqDXe+LVPaD9jqM2olcs2/K9no4n176vIdyVK9KhMUoPIYn+KWS40p8h+VkNz4P5VallhoZAX8O86NJs2thuTd6iIESsQa2JHYVlgXAkE4s/acbyGb/6CSMaJNMsmso5sMG09q3k1zkU4onBb9bDKQ== 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=YcoSDMKRpZxeS3j+3VyxhteHiQb3G+ksqcDBU7ayicI=; b=gx48D2TE1F4XXqhSPHX6HDIvelCBJbANP/wQxNQ3I08ARyBvmRP1RQ7FjA4lrqjEgOxy8qgsyJQ7qy/lC6Mb47dawoaGtL4oaBBZJKXJebLfp0pFWCcUN8YexPznHf9a+L/jacFV25OdTnT23FFK+mYk5yWfRIjtALkz6SBA9ow= Received: from MN2PR18CA0008.namprd18.prod.outlook.com (2603:10b6:208:23c::13) by PH0PR12MB8150.namprd12.prod.outlook.com (2603:10b6:510:293::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Tue, 4 Jun 2024 12:13:43 +0000 Received: from BN3PEPF0000B372.namprd21.prod.outlook.com (2603:10b6:208:23c:cafe::be) by MN2PR18CA0008.outlook.office365.com (2603:10b6:208:23c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.28 via Frontend Transport; Tue, 4 Jun 2024 12:13:43 +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 BN3PEPF0000B372.mail.protection.outlook.com (10.167.243.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.0 via Frontend Transport; Tue, 4 Jun 2024 12:13:43 +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, 4 Jun 2024 07:13:41 -0500 From: Venkat Kumar Ande To: CC: , Venkat Kumar Ande , Selwin Sebastian Subject: [PATCH v3 24/25] net/axgbe: extend 10Mbps support to MAC version 21H Date: Tue, 4 Jun 2024 17:41:56 +0530 Message-ID: <20240604121157.3052-24-venkatkumar.ande@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604121157.3052-1-venkatkumar.ande@amd.com> References: <20240507124305.2318-1-VenkatKumar.Ande@amd.com> <20240604121157.3052-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: BN3PEPF0000B372:EE_|PH0PR12MB8150:EE_ X-MS-Office365-Filtering-Correlation-Id: d9bdddda-9c57-4089-1bee-08dc848fc6df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|36860700004|82310400017|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?KLmtrX59k+1CzWjgUJ38cwGRiUi3ZCYrPppsOQ681cKxoZCiQH7PYlHWssmD?= =?us-ascii?Q?6JlsjnXpA6zqeQ9SpXIXbxIHc0ZLL0Ic9aokiKhRYXyEvNTNArmAogENrK6s?= =?us-ascii?Q?IhhCDSux6ITh7xhvUAYS/+5KU+e7h9u8TdlBL8xQx2JgojXp31/rQLlIa/Lu?= =?us-ascii?Q?43+i52kPIRXXbsgaYhOhDpa2HzM4roAFUnc0HvS4EHv+xvmDuhpWtjQCyg8h?= =?us-ascii?Q?IsJDsV3Z0eu3pBKyJYGdNFXqRUUXQGWC58XkKEJxBGcP0egBDbhXGz1JUuzh?= =?us-ascii?Q?Y1BkX5gHleQTOYjIPmw1vY/gHeD3JghoSXDzDlbRVhH+eZm1YvftewTbSGye?= =?us-ascii?Q?nKU16DoYoxoep06wv5aLa+d+bb6aHStsExHt+8t2MWGtnXTRZmxEdYlzeLaJ?= =?us-ascii?Q?xOE7ON8GHejrJm+QJ7al6WkOj6i4F2US4anddFwApsAukCFfiiURQ6PLaKQa?= =?us-ascii?Q?50l96Dq3d6eaGs2QiSWzOO0yQB/aAGPiBkUvjKsJ7hvWfFKJIkBq2xsat3lK?= =?us-ascii?Q?ctKPNwqRg6kdvWEtRH5fBHJOVXLrQPRmznOStCzpR3Ttv2RzSIc9ttQcLyPi?= =?us-ascii?Q?gRIaWCBHbTH1RfKyJs929cOCyUrOouZ08EOsfLfCL4QGDKqF82Fd+r3SBO4V?= =?us-ascii?Q?mEjkcmLBiLlD1QLu1MVpENZJTqnbr29jjZ9Rj/486KbCpfcoO9PUKhKQSohm?= =?us-ascii?Q?Qlb8KTcdU0EsSC5ucN8G5jARw0BoI6Wyo0nUgJmTf2EprcfjvxFJ8HfRLwxT?= =?us-ascii?Q?Hsgu2MbIFQfZeZgbBYL8TQh1yGnWkb/ZR4BUhYcKKqEglcxIDek+4KM7vp1M?= =?us-ascii?Q?xmLniBgarMxOTE3OFlxrTxMru07bizFznBRDs8rsWBdhyij7nDOGneXxfn4i?= =?us-ascii?Q?uRyrPTGNztwYGiU3ubClzsivY1B32z38ygFBa2yAPoDN/iKnu8FB1ygY/z9N?= =?us-ascii?Q?U0lW+/WTS07xfN6FD+/htuGQjjD0+xrdJXZ0X7BS0viE6srxKPO80DcSKm4T?= =?us-ascii?Q?Iz3MoXP7hdn/nTcKvRkWNDS+HW+hwjfEZb0+Jz21GszFYkttqU+GRR2Joq4p?= =?us-ascii?Q?BvtGiuhiW3Gefb0WrBWcwHKK/qFW38NLRc/YrjDagRGnuCmgIjWsXyipQwAS?= =?us-ascii?Q?3sJGgbJA6j265UWpUCTo/km9xACOb/u4NgyYtvMFpk/8DeevSulItOuLJMNU?= =?us-ascii?Q?3X7hQbaLaW1v/FlqjRUR3E5Q1NwQY7Cqsk2cofWnqvPjTQD93RwZu5vqRSjs?= =?us-ascii?Q?8HWxDU/2F2Dw9EvazW5MiK9ccPstsKJxxHDcE+2FPbcdCJGx0el1KudA26g6?= =?us-ascii?Q?7TJfS1gUhPD3Xx7LuMovYw6T4ishpXxBvM92kNqEJl8FunhrVLyuV9Wrjktq?= =?us-ascii?Q?JoqRWv0=3D?= 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)(1800799015)(36860700004)(82310400017)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 12:13:43.0999 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9bdddda-9c57-4089-1bee-08dc848fc6df 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: BN3PEPF0000B372.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8150 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 From: Venkat Kumar Ande MAC version 21H supports the 10Mbps speed. So, extend support to platforms that support it. Signed-off-by: Venkat Kumar Ande Acked-by: Selwin Sebastian --- 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 b9eec87e47..ba781e2f83 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