From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 03FC2280CE0; Wed, 23 Apr 2025 15:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745420472; cv=none; b=gdCB0vUNyNZA2Nwk8TtpkrMFSe8ifzhpSPW23v0MMKhkBWNwI2YwdfrmeLoBrl/KFGj11u6d5wQavMiboXa3lPwnOEk9FGl0Wzg0nhH0aEBVr9rKnninDusrJMkWaW9hhWDKWCag7rSFkOtcyIpypXIiUNd0S+SecjsB84wHxXY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745420472; c=relaxed/simple; bh=4uETPo3gOGrdzlm2skROmZw2vRj/oooqSGyvWrS/mF4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cecjp3TvXS5+SY5P04tnDxNDtOkZZFn89JowUwPteqLeMFPcnV2KNQwVvfbo/Jj3isMz9Yf5eVZd8Fd3j/UmRPSU0x/n9IT6BT0Rb0kBTFoMFIgZCFS/tEJGZZEnnbCSwoxpCdeT/ll0l+GcgJ1FWhS+AP9Lz8FukSDDfj2hxv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zqt1W8z7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Zqt1W8z7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 876B9C4CEE2; Wed, 23 Apr 2025 15:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745420471; bh=4uETPo3gOGrdzlm2skROmZw2vRj/oooqSGyvWrS/mF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zqt1W8z7fokmBk6hiiWTbnmB1YTE0w2qNKx3Jmt7VFb9+K5LXipJ48EfXRNvmUUWH UPykVeFahHNt4d4NW7z1/zlPVzzfDpGBftRO12H73NUk/qgsothT7byWsi7dHbaYZP LSV3MSggwvWbxH3Al46NwP5GXjMK4AKlVTlj+6gU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Birger Koblitz , Daniel Golle , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.6 077/393] net: sfp: add quirk for 2.5G OEM BX SFP Date: Wed, 23 Apr 2025 16:39:33 +0200 Message-ID: <20250423142646.484550602@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250423142643.246005366@linuxfoundation.org> References: <20250423142643.246005366@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Birger Koblitz [ Upstream commit a85035561025063125f81090e4f2bd65da368c83 ] The OEM SFP-2.5G-BX10-D/U SFP module pair is meant to operate with 2500Base-X. However, in their EEPROM they incorrectly specify: Transceiver codes : 0x00 0x12 0x00 0x00 0x12 0x00 0x01 0x05 0x00 BR, Nominal : 2500MBd Use sfp_quirk_2500basex for this module to allow 2500Base-X mode anyway. Tested on BananaPi R3. Signed-off-by: Birger Koblitz Reviewed-by: Daniel Golle Link: https://patch.msgid.link/20250218-b4-lkmsub-v1-1-1e51dcabed90@birger-koblitz.de Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/phy/sfp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index e0e4a68cda3ea..dc62f141f4038 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -488,6 +488,8 @@ static const struct sfp_quirk sfp_quirks[] = { SFP_QUIRK_F("OEM", "SFP-10G-T", sfp_fixup_rollball_cc), SFP_QUIRK_M("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g), + SFP_QUIRK_M("OEM", "SFP-2.5G-BX10-D", sfp_quirk_2500basex), + SFP_QUIRK_M("OEM", "SFP-2.5G-BX10-U", sfp_quirk_2500basex), SFP_QUIRK_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc), SFP_QUIRK_F("OEM", "RTSFP-10G", sfp_fixup_rollball_cc), SFP_QUIRK_F("Turris", "RTSFP-10", sfp_fixup_rollball), -- 2.39.5