Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp338829rdh; Sat, 23 Sep 2023 12:44:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRfZDeTswAqRVddyeWMJzu/bqhFv/cU/iz3WWbCMTUVrY43jpC/Cgrdidux7otVf5WTJpQ X-Received: by 2002:a05:6870:f28b:b0:1da:ed0f:9c84 with SMTP id u11-20020a056870f28b00b001daed0f9c84mr4013043oap.52.1695498270093; Sat, 23 Sep 2023 12:44:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695498270; cv=pass; d=google.com; s=arc-20160816; b=dRsg7WuPd4VZTX0Aq8Co3zXMZq8BfthveFnme039eDcRMACl740+tfrq78HUWqcZpx G9qwsrqBA1mMnCYx0HBdAmaqLaqYZBYxFi2JjAPBYjXKJ2fzw9IuervZwobQIkhXu8ky CcqL2cnHheDOVnNOqUvPrrxwlYEtaTn/lozaxKGS5Pow/7OAsqtqcowNuRtvckB1BXKR ACT2wcpXlc9dOUlEbOFMvZkkSvtkWcgMXp3Q9u8SKH/nncHkcsWU6qTRTEU3lV5b9v8L Uv1nRfzPk6tvKJTbJahBDzlLKg/RQrpNCj+qgvOr62gE+RXTTe6zkZbMF1sfanHnYObz HUhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3YUQpG9c5L2XJmX0f1KrxEihSueqyDJwLwUkN4nNd3I=; fh=sSbSqKsgQl6bZIJ9lyFWPlnKSNp5H5PO3vcPlNDguAg=; b=vGmiB0cZahVuvUrV1wwgftXXzCPj2Eqt094CVy85M7SzIRiMJe9vemIw2JW98V6zYQ k7ErIwRkVcleTr6Ye/deEEyF7F5JTPQWNZXqcA2CsNY622sRdkDEg1HmEJK5DdoDPXii ikxy7fnfh10WwkaL1CBlUgHEDTp3Hocpx9oBrX+KMDQhvPecfRlXybDaKXL13eT1C+k4 wCBYNs5sI9b4caBq6MBOJ9JTMa2ydA8vZe4xwt606I2bOfNft/uMDUW9SZpw5ZpcwlAD ZklasuehSSbwQGtXbz/Wfchj0tvYtxkZhyQe8YXPAaX0GihwIqiAqolmAB7Tuous58S4 vDGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZR5q80vI; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z16-20020a656650000000b0056c297d1640si5727830pgv.528.2023.09.23.12.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 12:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZR5q80vI; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AEBBB82AE370; Sat, 23 Sep 2023 06:50:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231815AbjIWNuV (ORCPT + 99 others); Sat, 23 Sep 2023 09:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbjIWNtr (ORCPT ); Sat, 23 Sep 2023 09:49:47 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2063.outbound.protection.outlook.com [40.107.21.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B17DCCD; Sat, 23 Sep 2023 06:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FXN6sW20/KWW2Z6N/TL/cxPTap24RTwkXCYHSXNYsrhZUjNsiyVLDw47g0VzPh6WBy5ifg/RHt6psMYnXys7oXo5DTuMdQKaMMKrPCMRKgeFHKZ1CQCJMQbrsq3FKAe6/QA4VKOljcRaoYJlCiH26+5IufvxkPkseCfrOs0fGsbcUq5zYMStR8PY0NAxhhr82Y/Rig3FYbKN/vIB/NbjMHKIGBYh/rWrK8Zh0Z98F12wjtLcE7j+xMlLF/xrQ4kvLcmvgkLhjiCCtdCTppEQa97s2m7gtHMgwhHYmyPeDZs3Xiqpw1Bn6IRvSo+DwGn8jfn6WWrWHyJnEUPVH8pNGQ== 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=3YUQpG9c5L2XJmX0f1KrxEihSueqyDJwLwUkN4nNd3I=; b=GGB1FAT6xXaXLbMUTptd0pcy7i9fD2VzQGHu9aCrxKWQlqagwP31dUCMKg06xO+gQmt3KDf1U38YbG6J3szeDk2hA6LQ1Ss4q1OR9Xj6moHRm4PGkfrycNbYWRxbT161Uj128y/+zeH+qB6n5/W65+zZiAGTGS6/umbuq6Z8kA/aUGfP5QdCZ9rM5dteRgSnPEBalLG3l/h3PNL0aFr0pj2Qijsvydx+7zsbFVgOypegPan1M8HSACBkaNHtzj5x1v4tprZWgpPK2LNgatuZg9yWpL4mklobNRwLPBIp59QNBGnlNbBU1x7depuu30zyObfydSZ+MjBGGvC6onExUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3YUQpG9c5L2XJmX0f1KrxEihSueqyDJwLwUkN4nNd3I=; b=ZR5q80vIiNWs+wy82/JHJkM9wK9+Rwo8rzqfR6f1VJ72G/fwKVl7eZoMw7kDdOIJpLL8Wu1keaDxHMaNMk5ZI4Q6vv3eCEW9CTJeQQj5M+cyCSN0dmn92sRw3nAUtRcw8qZ3bdW2SbOH3z2FiS2mdA20mnpR5MJS1K0r+pDkzvs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by AS1PR04MB9454.eurprd04.prod.outlook.com (2603:10a6:20b:4d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.21; Sat, 23 Sep 2023 13:49:35 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::568a:57ee:35b5:e454]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::568a:57ee:35b5:e454%3]) with mapi id 15.20.6813.024; Sat, 23 Sep 2023 13:49:35 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Cc: "Russell King (Oracle)" , Heiner Kallweit , Andrew Lunn , Florian Fainelli , Madalin Bucur , Ioana Ciornei , Camelia Groza , Li Yang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sean Anderson , Maxime Chevallier , Vinod Koul , Kishon Vijay Abraham I Subject: [RFC PATCH v2 net-next 11/15] net: phylink: support the 25GBase-KR-S and 25GBase-CR-S link modes too Date: Sat, 23 Sep 2023 16:49:00 +0300 Message-Id: <20230923134904.3627402-12-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230923134904.3627402-1-vladimir.oltean@nxp.com> References: <20230923134904.3627402-1-vladimir.oltean@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: FR3P281CA0165.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::10) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|AS1PR04MB9454:EE_ X-MS-Office365-Filtering-Correlation-Id: 79fd9972-4a3a-4648-d2a7-08dbbc3bec18 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AebI+8myDC8QXg7vQ3YwSeqjZFXl7OgmhPIZy619Bts5rnaXBB6fPaWc/l7havbIZPjQi52DpPcUCAfExDo+qRr+nE7qNKO2XDz8nLCDQgmz9Zi6hHAaIuTCWm30ugf9OHIckNSRnhBaCegy7sZUgNfvuzRtTyjEVWVsoBxiKMQXIza3KykVA+DOIogoECd0ZnWGXKAM3japMZt60pRSmaZwDrGYePXEgPSdee5g7qkA+/AlThb2UrOzOgNYrfVAF5g69fGPvPVF1crazRP48nundJvpBpvibmL6t8kGtN+HOvRJ5R/Rz7dG5iC43vQe1boPXeW8EGWPCruA5+59uIZjIXZq3pbP3ZrOYvnqDUOKzGD/a2qnznvDSw2pLYcxegmCleA35mGWsh+3b6foX2nIW9W1tLnMeV9mLA5Zy7apsggzxjDe6h52hZqW8gCFuJW8mumH2EzaDOu4buHzKyBgTtjzJDUj8oMNOnxPZkWQMS8u2tJVY4NpLcAWwlrHMS7YY4SZthhhftSXfkWG2yRUnE2+1Jxo4iGxsjj6ZBTGZLHD2wbjagDtI2o3S2HQLpQWIXXyeGhtCwvVOPy2v0Z5cN2Uuv7Mdenl6zA4hRiR1HGBI+tJtG3r6/pWOYEq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(39860400002)(136003)(396003)(376002)(230922051799003)(1800799009)(451199024)(186009)(66556008)(52116002)(2616005)(6506007)(6512007)(316002)(5660300002)(66946007)(38350700002)(6666004)(478600001)(1076003)(66476007)(26005)(44832011)(2906002)(4326008)(36756003)(41300700001)(7416002)(54906003)(38100700002)(6486002)(8936002)(86362001)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SfM9zlXt3q1Xm3Zm7RT0h1Rf6viYdnjbpq1vqSuMSQBOU5MJ7Trhhn5mgER1?= =?us-ascii?Q?NaCt9kah9tvNNlL3E2MMSJDl8eVAP4zR2MIVZpgsFM0n56a+7jsL0tmRJg/Z?= =?us-ascii?Q?simsn/aOuNTw1NtIAGlvHUi3zB4LwIK9iZiv/S8lRzHsAod2irzYUH5a0trP?= =?us-ascii?Q?WiMqbZBBVX3BuGKBD5S8MovqnQKTkHCZZiHz24JRpEX6uJHXxZDPmY99e3Vu?= =?us-ascii?Q?Sq1Zc2SCm/5uwZM5+YKcq05V8bn718hPkIcaY9AwDebN7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0VNQ3yOJd1uSN29H40QSER+73cXc3LoMCdR0eha?= =?us-ascii?Q?/kimmShNX8oDLG+T3FQSEiB9OZt8rVVm69mkG/xHc6E0ax5MD7ESzIMVnhmJ?= =?us-ascii?Q?ibyC6pxsTc7trvIL/ZMoSHSwXQqVlkM1CM49orlJTBC9Ck37Bg/qIydCJGaW?= =?us-ascii?Q?Tc2TLYOaVVhdTqToeHcJRBSjrLriB0/QG2D2No55gebMoIcTXTqmb8Xukiof?= =?us-ascii?Q?mlIpAzCGCJJ7A9e4wr3G7xNFvFk0JWUoRag/VfvIrabCxOc/bZFJExz8Tf5R?= =?us-ascii?Q?6f5cOYwhUCMVqjvuqsI2awVEhBRgXr803H+DyTuNMgsjW7c11xDTMD2WSrF6?= =?us-ascii?Q?uCI/yGlEwHXR5XrrkNYv6a2yx0s/s9NvVoO/YwtNEjFKL0apgxfLP3SZ61nc?= =?us-ascii?Q?bxK9fMw6B8x6gWRWlPTDIbR69ERbHK+Ya5gcuQmqwHD3hxmZwJIbu6jk9nW2?= =?us-ascii?Q?3w=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79fd9972-4a3a-4648-d2a7-08dbbc3bec18 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2023 13:49:35.4983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sY5Aq1rFDqGF7oK1Nvk9V2Hc1UtjjS65M+X6z2PBKLrVDzSzcS0EnbCE22Gp/AZ9ybcDrij3rYF5+gJVFzCw5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9454 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 23 Sep 2023 06:50:38 -0700 (PDT) X-Spam-Level: ** Treat the newly introduced subsets of 25GBase-KR and 25GBase-CR the same way as the fully-featured link modes. The difference only consists in RS-FEC support. Signed-off-by: Vladimir Oltean --- v1->v2: patch is new drivers/net/phy/phylink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 6415c7b91053..157984dd81de 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -321,6 +321,8 @@ void phylink_caps_to_linkmodes(unsigned long *linkmodes, unsigned long caps) if (caps & MAC_25000FD) { __set_bit(ETHTOOL_LINK_MODE_25000baseCR_Full_BIT, linkmodes); __set_bit(ETHTOOL_LINK_MODE_25000baseKR_Full_BIT, linkmodes); + __set_bit(ETHTOOL_LINK_MODE_25000baseCR_S_Full_BIT, linkmodes); + __set_bit(ETHTOOL_LINK_MODE_25000baseKR_S_Full_BIT, linkmodes); __set_bit(ETHTOOL_LINK_MODE_25000baseSR_Full_BIT, linkmodes); } @@ -919,6 +921,8 @@ static int phylink_parse_mode(struct phylink *pl, case PHY_INTERFACE_MODE_25GBASER: phylink_set(pl->supported, 25000baseCR_Full); phylink_set(pl->supported, 25000baseKR_Full); + phylink_set(pl->supported, 25000baseCR_S_Full); + phylink_set(pl->supported, 25000baseKR_S_Full); phylink_set(pl->supported, 25000baseSR_Full); fallthrough; case PHY_INTERFACE_MODE_USXGMII: @@ -948,6 +952,8 @@ static int phylink_parse_mode(struct phylink *pl, case PHY_INTERFACE_MODE_XLGMII: phylink_set(pl->supported, 25000baseCR_Full); phylink_set(pl->supported, 25000baseKR_Full); + phylink_set(pl->supported, 25000baseCR_S_Full); + phylink_set(pl->supported, 25000baseKR_S_Full); phylink_set(pl->supported, 25000baseSR_Full); phylink_set(pl->supported, 40000baseKR4_Full); phylink_set(pl->supported, 40000baseCR4_Full); -- 2.34.1