Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp446805pxu; Thu, 7 Jan 2021 08:54:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPA0I92BfucNDmJVxMtwfmtJOJQgQqbmPrExaho3Ce9EdLCJzmUVqnxaIDqJVHh2RjvMun X-Received: by 2002:a17:906:d81:: with SMTP id m1mr7122756eji.550.1610038440063; Thu, 07 Jan 2021 08:54:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610038440; cv=none; d=google.com; s=arc-20160816; b=Z1W8vxtWo1pbhceqKh0cGD0oRRbojTXu/ZzBDIUED4Ih+gJ7AfOvrUwGQEK6AvR4NX yGkYiBpa0+sORpK2a8XAGVAdR3z4SxRjsi9ShUjymCjxk46D0zMnGnm5KlOL/i+g8JR+ E9BDT5VlH5Ebgj+tLPLK7Vg6BCRcdgvZpGQLR4+K9alNPbBn2gMVHJ5fH5ARlaZLZfxv 8T5McTY3oOqrBIxoVsAWWhZStmueGTTcdOU7YMix8HOPNzsD4ANuqBW/0HtzJrL7lj0a gJ2SSvSy+GiVOCbFKXgIcoEK/Ka22uO9DuuEjgpObNjgRMAx/KMmHXdFvXckNeTqYKCe 9Nqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NBUDh7O66arLe2+cbfGZxI/4mtbLkonxeZ53ulmJydo=; b=BXERI/fU9E46NRXWXovUukeZF0UkzH4dzCWw9ScYAOYoZiNMgtd6NZ7lFCZk8FHZAI LhZWbIybX8fXH14ovIi26AU6D3xoF+qLa+NrxQeMVVAupRIx1z0Bc4+NG7KA1vR+YZN+ UreBywI8xLAtORfAySUxzKPHlyE0l42NX2to/U+Xl646zg/UB8OBOTj8fFhjcS90GAf7 G3Oup+QrxznwMGKoAq+cITDHPRRJTvyLPtx3KwdrmD9LxVBi8meae0zFxYKU/Jj6JGx4 FmkrLXV04sj/91VkZ+/yEscGcc8lxC7y/EhK9YSNjDsuMqpZ+dwpTxFjuFNqRPbd61nD F/Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si2598508edb.213.2021.01.07.08.53.35; Thu, 07 Jan 2021 08:54:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728362AbhAGQwR (ORCPT + 99 others); Thu, 7 Jan 2021 11:52:17 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55394 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbhAGQwR (ORCPT ); Thu, 7 Jan 2021 11:52:17 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kxYVW-00GiDa-Ot; Thu, 07 Jan 2021 17:51:30 +0100 Date: Thu, 7 Jan 2021 17:51:30 +0100 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Russell King - ARM Linux admin , "David S. Miller" , Jakub Kicinski , Thomas Schreiber , Heiner Kallweit , Marek =?iso-8859-1?Q?Beh=FAn?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant Message-ID: References: <20201230154755.14746-1-pali@kernel.org> <20210106153749.6748-1-pali@kernel.org> <20210106153749.6748-4-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210106153749.6748-4-pali@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 04:37:49PM +0100, Pali Roh?r wrote: > SFP GPON module Ubiquiti U-Fiber Instant has in its EEPROM stored nonsense > information. It claims that support all transceiver types including 10G > Ethernet which is not truth. So clear all claimed modes and set only one > mode which module supports: 1000baseX_Full. > > Also this module have set SFF phys_id in its EEPROM. Kernel SFP subsustem > currently does not allow to use SFP modules detected as SFF. Therefore add > and exception for this module so it can be detected as supported. > > This change finally allows to detect and use SFP GPON module Ubiquiti > U-Fiber Instant on Linux system. > > EEPROM content of this SFP module is (where XX is serial number): > > 00: 02 04 0b ff ff ff ff ff ff ff ff 03 0c 00 14 c8 ???........??.?? > 10: 00 00 00 00 55 42 4e 54 20 20 20 20 20 20 20 20 ....UBNT > 20: 20 20 20 20 00 18 e8 29 55 46 2d 49 4e 53 54 41 .??)UF-INSTA > 30: 4e 54 20 20 20 20 20 20 34 20 20 20 05 1e 00 36 NT 4 ??.6 > 40: 00 06 00 00 55 42 4e 54 XX XX XX XX XX XX XX XX .?..UBNTXXXXXXXX > 50: 20 20 20 20 31 34 30 31 32 33 20 20 60 80 02 41 140123 `??A > > Signed-off-by: Pali Roh?r Reviewed-by: Andrew Lunn Andrew