From patchwork Sun Jan 7 16:17:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Palumbo X-Patchwork-Id: 13512927 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03olkn2081.outbound.protection.outlook.com [40.92.59.81]) (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 8FC5B13AD5; Sun, 7 Jan 2024 16:18:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.it ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YOEhPQ/ydo4e8hH2WDVH0Xdd+i6jpY2ywattcUF6HFr0LXvC7aXrt8mvf2mnDTWdHgfprLY2dvI16bSzhbw3r6bJDWe+uE6lWlJ7k3beUS6vCJEFiR/3AExorHj+KnumEhZVZC9w9bn+vSCLPC2SAgyZ4unZzcRWVq4sPlgkPDfbuuva8y7/DqIw76NfCLzPgSKnORqMXNlwE1WpPKapL2rgp1iPCkTjtx3RdgMq0OeU0cMMxS41MNe8jqIm9Wg1IQjLCHVknQ6tKYKujJw98st64nwAKQIrZ5trW6qVTNqwv/6aFuvQQJ5Emi2Qp25NvlNFUuP8Gojk9o2zHOs9TQ== 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=tfJ608z6DqTQSEo42Js4e2+l3qdmHBzThX0Rd/+1r94=; b=QJCxfyfWheJYmA8JzvaXp2sbYoEFerPFTJoS1awSTv0c1iEXh/8QcTfZKdDg+kOkdESxn1TjeMfVVDBnOUqlsBHY/TFMzhFNGbC17I8wX/fQILErd6y+LSA28Ii6/ObddCRIcoDCJYfS+XIqRlpGxqtzeVJASlwSQSe3meV6StjDrrll+2+j6nEthZnqrvHWTVXf3TBPpJjGpo3dXrteHRjblKjiOC0evFhn6AqeSFGCQL+h7abNlnh4u/luDvl+0K8ZNSIdNcM5W61SDADufVR2vHpZ15feftpqhngsElwgXWD5KAU7yycFzXE1tb/5jYszYy1WgOspCdn0LCCvUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AS1PR03MB8189.eurprd03.prod.outlook.com (2603:10a6:20b:47d::10) by DBBPR03MB6729.eurprd03.prod.outlook.com (2603:10a6:10:209::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Sun, 7 Jan 2024 16:18:13 +0000 Received: from AS1PR03MB8189.eurprd03.prod.outlook.com ([fe80::ffb3:3ff8:6ea9:52b5]) by AS1PR03MB8189.eurprd03.prod.outlook.com ([fe80::ffb3:3ff8:6ea9:52b5%4]) with mapi id 15.20.7159.020; Sun, 7 Jan 2024 16:18:13 +0000 From: Sergio Palumbo To: Russell King , Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: sfp: add quirk for DFP-34X-2C2 GPON ONU SFP Date: Sun, 7 Jan 2024 17:17:57 +0100 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [6MiRUswoYghdJmNK6n6kZf8jqOU5B0gM] X-ClientProxiedBy: MR2P264CA0095.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::35) To AS1PR03MB8189.eurprd03.prod.outlook.com (2603:10a6:20b:47d::10) X-Microsoft-Original-Message-ID: <20240107161757.6179-1-palumbo.ser@outlook.it> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS1PR03MB8189:EE_|DBBPR03MB6729:EE_ X-MS-Office365-Filtering-Correlation-Id: 305ee087-f50c-4bd2-9969-08dc0f9c3f15 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iaO8KmwYBuAhETc1WyH128PY/5FE2Dtej7qCjBIjJ1aIIYOFIMBWLv6DbmxcDZ4j/0QNpijii3d9mQo7m8JmdIENDAA6EqGfHRROTAXVmyoZYNROaCq8F0SUJYGcZoooNsvYUZIN4snJqE1+ZgFZZX/ePNEl+mztBa3/A6cuk14V6GLrCfOIYab4EIM4bZrE9mBqc4WjMJhNHhN7LIh3Q87LFWIRitCxSDcYaEt7D0GPOVnHY77M/oCwpE2qrgXbCVu3VHeRLtKKJ2BI/VwH0VgZm8J3pUPmsJhD7AmVk/saKxB2jqD0JrhORdfSwXu3fnFhhjoZQJPDXGEXrJCsMgvIK+BYe0ZiFJkQU9/DRfwhh1JAate/JzAZsSReTOffuVaZ/iIP130EDQk41vLick1jOgkuZxaroty3NpC8esKS1Qcgi0Fl4wIDnIOLz/dSxX+Gcp2+sHxmokfpx3tfgPu8Nca1D4U2ewBCmeESHwZpG+eyu75Z9DzzlnnH/hw0T7DWTRYrw1EUy/eyF6GuJusE245iclYir/u2K6ZtXgW5jjHdVBz14BVmm4Z5a/Be X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CDivmBFNjUos84lwEy9EoMNzD5z4?= =?utf-8?q?uLT2E4T4VhOZ4Kk5o8jpGeGASTK5h99bNyvEIBeeFKj3Zk6GLv6ED+wOfKU1UAep6?= =?utf-8?q?o1GIOu6ioAgLTt+wSzJwQvhMNTQMEwfkH3iR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et8dAnRTAWF3lxydVIg9nQuTO?= =?utf-8?q?1nBlbL/zZzQXdcJVrnqjYPeX6GFKizZYq7HgSawfrl+9yhg17iQZYInKU3/Kh3AVW?= =?utf-8?q?aIk3SIXo3YgWT5GpHUmpXr86WQUCtW0K/LcrCr43At5X9IfnI73Pi5hMfIIHdiMfI?= =?utf-8?q?kpGCVcrXHpeHKwLkriZcZGE/poN0rFij291OvO+vllKqeRGVlAdeRrU4LwKHs=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-76d7b.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 305ee087-f50c-4bd2-9969-08dc0f9c3f15 X-MS-Exchange-CrossTenant-AuthSource: AS1PR03MB8189.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2024 16:18:13.0775 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR03MB6729 X-Patchwork-Delegate: kuba@kernel.org Add a quirk for a GPON SFP that identifies itself as "OEM" "DFP-34X-2C2". This module's PHY is accessible at 1000base-X, but can also run at 2500base-X as per specs of the module. After application of the quirk the module is enebled to run both at 1000base-X as well as at 2500base-X interface mode. Signed-off-by: Sergio Palumbo --- drivers/net/phy/sfp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index f75c9eb3958e..1a447e3567c8 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -506,6 +506,9 @@ static const struct sfp_quirk sfp_quirks[] = { SFP_QUIRK_M("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g), SFP_QUIRK_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc), SFP_QUIRK_F("OEM", "RTSFP-10G", sfp_fixup_rollball_cc), + // DFP-34X-2C2 GPON ONU supports 2500base-X + SFP_QUIRK_M("OEM", "DFP-34X-2C2", sfp_quirk_2500basex), + SFP_QUIRK_F("Turris", "RTSFP-10", sfp_fixup_rollball), SFP_QUIRK_F("Turris", "RTSFP-10G", sfp_fixup_rollball), };