Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp994994rdb; Fri, 2 Feb 2024 10:03:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPJTj2AdVrCFS46Cu76aZd3D4fEsAbPCCFbr9HRmXkQdV/iugHtnzQJUGjaVOECTmHlMOy X-Received: by 2002:ac8:7f91:0:b0:42b:f076:b209 with SMTP id z17-20020ac87f91000000b0042bf076b209mr9440698qtj.20.1706897014907; Fri, 02 Feb 2024 10:03:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706897014; cv=pass; d=google.com; s=arc-20160816; b=BF53dq3fmHmJPU9FsJi6WNZQisRPI1ui7SbJC5pU7oYSbIfGM7e1Fn85uwhJXXukwc YFw7I2sZEM94R6mAVLDKq6xxATylMROwUEAz6LMmECREud53zE7jdM/EL+mlRovRKrBq jaILVYYcA762PDnr1R3mcl3k+h9uWvVKMWgXy4PhpCC5QmFnE44VxEoc45SlfnD4A/lX bOAZObdWHClUr8GID4rM90SjgKPnUCp9qaOt/JS4N5JNoPxy2NDGAINXbw8wL3VQd5P+ cbWzU8lTdlzFE42aH8O39Uf4iTcxq/+ez/jTWXW5hd+UQR9ezs0mxL8q5+9RxSHvNC2V BqtQ== 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=qW6erQdXZh/wex5Ipty9iKt5f/CAhi5xgAqgpkUZTXE=; fh=Lh3tBI0/k+LbaS1PuNLlHguOtk17Tz9V1SrCbmQWk2A=; b=fPpp6ItThozmDLlrbXXQiXa5IDMdQUj6c1uv2lsTma1tBsn9xcNttg9NYTdKa4fJdb yNGj3FMMfbYXdcAx66iFo8EdGXM25DzqahJqkXA9vDG2nqhGfoXIDB0x0FkX71dAOUND dovelluJHBRxKjDQTOZG+GCEb3bGhn3oBI/BKOOm79cgoR44kmwUMS2n78X+c9E9Cs7R T8hOYX0Y1uMOSk7zPBoyCg/EAlvLtaJ3L5Fdj2razR/JN8+ewqAoecgJdVsbIetXxzis SDnHfZkBqjm3DZUKvDB6lM8Py66DzUSwvLL1iarMjwL90DErfZcoIlAxPIrXovSUGKbi l6Tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=jqGmbV+Q; 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-50287-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50287-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=1; AJvYcCV9sP7LAxCN/Hsa5tmlQo2GIeK/7/KC4nklX0dkh5rc4HBYce7j+05beaeB2+ymdt3nm+JfDp81qTemHmm0VPC81putNOzajZA3B9BjvQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h11-20020ac8584b000000b0042bf8c99a94si2496305qth.296.2024.02.02.10.03.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:03:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50287-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=jqGmbV+Q; 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-50287-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50287-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 A2A981C26CAF for ; Fri, 2 Feb 2024 18:03:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A86EC14C5AE; Fri, 2 Feb 2024 18:03:26 +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="jqGmbV+Q" 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 CCF7D1474C5; Fri, 2 Feb 2024 18:03:23 +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=1706897005; cv=none; b=PQSN7WMG6AaK9HsamtQf++mHCqjFL1z/3qfRuOiaufMQ5fZfTCX4OtvjUyfaVKqYZ3yX0FZ1D3bmU5YMunLPdjK7akOQjCZxMfB6XgocABlAxVM/vswozT9f+4iAzX+ZxK/RpdtaSWY4oGik8I/vgD6HMM8OXln963I0ss/LVAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706897005; c=relaxed/simple; bh=Uup5FZMCcfCZOBIUv6G2Fi/wsqkNSTdL09LNTQwRP+o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p9jueDsoKwZAEE+j4Xt65rR5gEv6Mbrpp1XD2O3qoKQd3UU+0Ogb0Ojs8LUwd4ja/eBWK6I5TDbjNEketBmiAjkMXyvyjfzga1tSrUCYqZSR8FrbbU8aOFctI1fYdHmlHg4XCVDzFj/8hkJQGHZpRfL3o14cf+UmOcsJOVejr7Y= 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=jqGmbV+Q; 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=qW6erQdXZh/wex5Ipty9iKt5f/CAhi5xgAqgpkUZTXE=; b=jqGmbV+Q1QaVQdi2aLgWcgAdoB aSdWAty4d+FolwETOQNX57ObHIwrXEVvpY7/ORK8jpChvDNRv+Cc4SLhJqw7g1IzilwXF9S1WJWiF agLfa4ntaPuZdC9+NJl9JPwTTLJFwABGpyG6Fl40FdRfkxbzezkornZ9aubEFUnHZWc1VhEoOBIHz AOHTY4cg+kXDUth76QIHTUSN90EtNCU8ej7CsZ50Lid51NlTyWHfUIwFzBWGaFNvCRS+2qqG5rEAu CC6kKNcawpRX3WnKxgNcsKsR0tY0tkx97z4KFlyzthfOEqMxWooyHOrgQN/js7g9TTLAfuG7dcyza cm7uPp7w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42210) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rVxsj-0006KR-1y; Fri, 02 Feb 2024 18:03:17 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rVxsh-0008VD-Sk; Fri, 02 Feb 2024 18:03:15 +0000 Date: Fri, 2 Feb 2024 18:03:15 +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 ODI DFP-34X-2C2 GPON ONU SFP 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) All the concerns with the OEM version of this patch apply to this one as well. On Fri, Feb 02, 2024 at 06:44:32PM +0100, Sergio Palumbo wrote: > Hello Russell, > this is the pach for the vendor "ODI". > Same hardware but different vendor. > I explained it in the description. > Hope this clarifies. > > Thanks and regards > > Sergio Palumbo > > Il 28/01/2024 15:43, Russell King (Oracle) ha scritto: > > Oh, a second repost. What's different from the first repost? > > > > On Sun, Jan 28, 2024 at 03:23:06PM +0100, Sergio Palumbo wrote: > > > DFP-34X-2C2 is a GPON spf module working at both 1000baseX > > > 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 > > > > > > 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 1000baseX 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 "ODI" > > > > > > 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 3c0028a4af92..410375bc6b94 100644 > > > --- a/drivers/net/phy/sfp.c > > > +++ b/drivers/net/phy/sfp.c > > > @@ -495,6 +495,9 @@ static const struct sfp_quirk sfp_quirks[] = { > > > // 2500MBd NRZ in their EEPROM > > > SFP_QUIRK_M("Lantech", "8330-262D-E", sfp_quirk_2500basex), > > > + // ODI DFP-34X-2C2 GPON ONU support 2500base-X > > > + SFP_QUIRK_M("ODI", "DFP-34X-2C2", sfp_quirk_2500basex), > > > + > > > SFP_QUIRK_M("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant), > > > // Walsun HXSX-ATR[CI]-1 don't identify as copper, and use the > > > -- > > > 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!