Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2354817pxb; Mon, 11 Jan 2021 07:35:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/k8vS6afp935Nn/ZIsf4SCSZkfU7FWj0tdsKMPSWOyjNACHvMQs3In8uPf2JjLyHkbzCq X-Received: by 2002:a05:6402:3048:: with SMTP id bu8mr14446627edb.49.1610379351590; Mon, 11 Jan 2021 07:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610379351; cv=none; d=google.com; s=arc-20160816; b=Cbpb295tX+QTR74jtscOZmxpWvprvjPUWi6c1RmQUdlcTyots1nhwTCJ+vutxnrlp2 oIMY/lvbSIcVHV6mhuX9cmXD8KoP5u2dCQXUOz8giJc1qiUr6jegr/M8dQWDK4QJPdMY Ou9ZcGXUxuv/hyWa5JBN0eIy/HpQZeQfz2wu8/nBGpYDWKTyESj4oUo/4dUDJ7wbk7uR jv/lP8Jw72DbzvrLZsL1W2oTE1R70SZTXevDMcKSAvx8XARjt7Bnscg0ajjdGbiUtHTd OVMPfH49fFGeG65xZhiY/bgH++cd+yk+9tn5UCo3kVYvnWL5CffyEr/jfyxVhodBwg7H RmOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=I/OpoqmWhsIFJ20SANEF8QX3N1J+EnExWmCgCYEEnbs=; b=TDj3vSrqbhTLlIGQvHS42mGcZYUgCSJP9je/NM57uJZyo387G+XRD2mHJ9Bt170Oj0 F8nCtMLgZa8YBA+gFbI0QrG3wjk6SDNxU1Ib71fnYT2A5gRL+VRLYfIenbhkOYixRNH9 FinQ/pEbnC1c5eVNAA9MX2wxXwJwwNOFryxikEbC11Wt6flKaVEAJH3fboxwjA7RhE90 t5OUf5lpaHAjKLQfj3pUS6+8v4kuqmQurMmJaKS8JWGOEhRhZyVmXNBDWrdCS3oX0PdN DT0dJSIEwwokHUH8tXrllHSzxAkyTz1bCOI4yvgg8uuOV5NER0r5SEg98mgQM398eKBu mz/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SZmlS63u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si6523238ejv.28.2021.01.11.07.35.27; Mon, 11 Jan 2021 07:35:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SZmlS63u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732538AbhAKPdS (ORCPT + 99 others); Mon, 11 Jan 2021 10:33:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:56748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729871AbhAKPdS (ORCPT ); Mon, 11 Jan 2021 10:33:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F3C922795; Mon, 11 Jan 2021 15:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610379157; bh=5b00I49SQeSeQ1irJIjVV/jPcdzaMd0WfUJdXSf4GUs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SZmlS63uOGmQQ9tlzQKnSi55tx1tu6dsWsXqWEpwIldadW5HQRLfhV7w515pTxp3f uydJHj5/ncyzqxdXQ7k+8HVPL9aZcCFQgwgfDKlexfnAtLFppMIwLl/1NzQ5h0EZu5 6H6uhsPzZtTWtld+WdyRrBFRuhJX/8E8tvQqNz7R7kun8PTHmGzceozy82SmH88tnU L8QDNOX+EodvcrI7S4x2RJm2e3jssCOBT1uLHR/6jL2wBjRGViGAG0iKKRmElg+AfK XaTlG/5rdBAqfn/X1k23TowT4f8xKTYojc4kIobVXI9DeL/YJnrqOBEb+C2r+9j2Wj 3oeTePzdkL8Hg== Date: Mon, 11 Jan 2021 16:32:32 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Russell King - ARM Linux admin , Andrew Lunn , "David S. Miller" , Jakub Kicinski , Thomas Schreiber , Heiner Kallweit , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant Message-ID: <20210111163232.18e7edcb@kernel.org> In-Reply-To: <20210111113909.31702-3-pali@kernel.org> References: <20201230154755.14746-1-pali@kernel.org> <20210111113909.31702-1-pali@kernel.org> <20210111113909.31702-3-pali@kernel.org> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Jan 2021 12:39:09 +0100 Pali Roh=C3=A1r 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. The Ubiquiti U-Fiber Instant SFP GPON module has nonsensical information stored in int EEPROM. It claims to support all transceiver types including 10G Ethernet. Clear all claimed modes and set only 1000baseX_Full, which is the only one supported. > 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 module has also phys_id set to SFF, and the SFP subsystem currently does not allow to use SFP modules detected as SFFs. Add 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. > > Original EEPROM content is as follows (where XX is serial number): >=20 > 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