Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp731137rdb; Sun, 28 Jan 2024 06:39:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/et9jUyPQy93D/V9yxcDgR43acdaORPXetvwYUO/g/vgarUV8Z7kQUETRbYkKEl5Z/Xdz X-Received: by 2002:a05:620a:2098:b0:783:8ddd:f430 with SMTP id e24-20020a05620a209800b007838dddf430mr5180919qka.40.1706452757707; Sun, 28 Jan 2024 06:39:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706452757; cv=pass; d=google.com; s=arc-20160816; b=ZA4fB3iVTnHzUHiwcAAVYbcExz98cHJns5jqX1pyM6y90SoHA7ZWBzOSYT4PozgQXc p8a0jU3N1dCPMtxYBWL89jNlnAs/keuagy0YzRLFdtHvEVXKMVTJlaDaDiVK2pkfG1E7 A/RCUyE8aM5beNHglKNooE+xZAKguAjbF5TxBEdzjHRmYLJtF4AUZUMfCJWCmk8Z1vZb 5y+KYnT/vZFtmyfxI3kaL35XytHrN5zpPm8g+71Xea1H4AvTDtAM0DXZm7k2rcccHskb v6+HvJ0SEEMwqO487I3d6DJAi4ZyzY8+XWE9Qy4Ld7DHTGRZlyGT4hyfUuw2f8P/PhoG 56DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=I6ACCzW+hTeTlC6/VsJEfVE51kt3bn3lOnBZatz2MfY=; fh=UKNMUrPbiAcfHqpupw2l7RKwtMQuGuv2ZF8yW6hR9ow=; b=dmkNUXCbwI1AZtZ9TOba8paTqpE7Wh18tWHlZQ712Btgr22OEdM+LJUpTyu8fxGi2G YnrMM9l0BPHk+T0M3oLdPWL012vqYGZnwFidZN94rD9Lt/Q30Zyu+MU1dwLiEO7YQJCM nKRct1oz+uh4uAmG2mJGSMcQuinW37+dmi8FdqFCIWgiAe6wTbBedv6St6pfGWFmWXdX i3zUvnBv8zRLw1tjlbbeSeqaqn/dPBbjfovHcceQQofMuE9E6mAie1uZKHHG7QkRJVCc SgVW1E2fzocDR7GPzlp1Brl1vNdD5kXvvLbfTOCERP/4toa2CIaTRbBvuL8NZoMst7bK C6zg== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=HluDOwDy; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-41652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k26-20020ae9f11a000000b00783376514b6si5441575qkg.366.2024.01.28.06.39.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 06:39:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=HluDOwDy; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-41652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 77B1E1C22573 for ; Sun, 28 Jan 2024 14:39:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F5C3208A5; Sun, 28 Jan 2024 14:39:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="HluDOwDy" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 944AC24B2F; Sun, 28 Jan 2024 14:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706452747; cv=none; b=VttTkqJ4fJZ1PcgkKwIEMORD6Lr0UhvUFUAgw0GS3F21npce0cR+h+o2rqwD50RrmpBl8tBa10U/CJRZvLcpUSQasWgEjlDoFmSWyssnHBen7R7vBOpdwTWVJaqT8X+lzW5c0bTbF7cw0j1ZlcWVBjZK/ij7bR/0RaBC1w3xDcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706452747; c=relaxed/simple; bh=sV/0bpxeEL/BnlEZwiQ71DmUVVtyXCjgScFG4Hc36+0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GWS/rC9whZcZS/JyJj8qPiiRjWbnND38U/3pysmq0/bYcgYl761kPFZwuGonX4iFqY+M+SXUu4uUMGtaPtBCGEsjGmG+efT6l5u6UFd060XRDETf9GdVnU7FlE7BySn/gifjKIYDW+8rtHlizccyDCVfTsR/0qcpmzz8BH5Ju2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=HluDOwDy; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=I6ACCzW+hTeTlC6/VsJEfVE51kt3bn3lOnBZatz2MfY=; b=HluDOwDynRcPVV+q5nbObZtpa0 wo213oMK0Xig18pjoekaPd2i1EO1YqHdhpQ7Xw5os7VlLK/jk3C9f6JZVPTtnleJnIsqmyZC0vTuk NNXxNEroKb0EtFX4QXC1b8+zkM1MEagytzdOM1Aru39iKlRJ1h45jRkyHolv5d03qQ7asChTYrOCz otzJHzvFN116rdyf5Zn/v2vo+LgxcumeRYjycZuyjSmWyugS2QGg+XUqPYnQxFrHVSumt1spqrUjr Y/LRGniwhLSnRw7u008d/rFmRvKIgmIUEUbYKfyg4zV1qVlKUDy/tZ3Q+5qNuoaMFK9/Aaa16yBPo F4Z3hJ7Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44260) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rU6J3-0007tF-3C; Sun, 28 Jan 2024 14:38:46 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rU6J0-0003hC-QL; Sun, 28 Jan 2024 14:38:42 +0000 Date: Sun, 28 Jan 2024 14:38:42 +0000 From: "Russell King (Oracle)" To: Sergio Palumbo Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: sfp: add quirk for OEM DFP-34X-2C2 GPON ONU SFP DFP-34X-2C2 is a GPON spf module working at both1000baseX and 2500baseX. Setting the module to LAN_SDS_MODE=6 the module is working at 2500baseX with auto negotiation see at https://hack-gpon.org/ont-odi-realtek-dfp-34x-2c2/ Unfortunatly the module's PHY is accessible at 1000baseX only. ethtool returning: Supported ports: [Fibre ] Supported link modes: 1000baseX/Full Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) Your subject line is way too long. Didn't look further because that makes it difficult to read. Please wait at least 24 hours for other review comments before re-posting. Thanks. On Sun, Jan 28, 2024 at 12:56:25PM +0100, Sergio Palumbo wrote: > After applying the quirk: > Supported ports: [ Fibre ] > Supported link modes: 1000baseX/Full > 2500baseX/Full > Tested on BANANA PI R3 in OpenWRT v 23.05.2 Kernel 5.15.137 > Tested on sfp to ethernet Media Converter. > Autonegotiating 10001000baseX or 2500baseX according to the connected > host speed. > > This module is existing in 2 versions: > Vendor = "ODI" > Vendor = "OEM" > This is the patch for vendor "OEM" > > Patch has been inserted keeping the list in alphabetical order > first by vendor first and then by part string. > > 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..260917488c77 100644 > --- a/drivers/net/phy/sfp.c > +++ b/drivers/net/phy/sfp.c > @@ -502,6 +502,9 @@ static const struct sfp_quirk sfp_quirks[] = { > SFP_QUIRK_F("Walsun", "HXSX-ATRC-1", sfp_fixup_fs_10gt), > SFP_QUIRK_F("Walsun", "HXSX-ATRI-1", sfp_fixup_fs_10gt), > > + // OEM FP-34X-2C2 GPON ONU support 2500base-X > + SFP_QUIRK_M("OEM", "DFP-34X-2C2", sfp_quirk_2500basex), > + > 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_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc), > -- > 2.34.1 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!