Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp913605pxu; Wed, 6 Jan 2021 07:39:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf2QofWA9bb4q9Z1thhkOYteHcwoI6JOl3ipGqHB3UjyWr9qlk2IE+VN0Hc8f4GOFs4Bbh X-Received: by 2002:a17:907:20a4:: with SMTP id pw4mr3112059ejb.499.1609947565974; Wed, 06 Jan 2021 07:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609947565; cv=none; d=google.com; s=arc-20160816; b=eum7Lx5LlmIZarVpugx/h0YsQ3Q6SPndvuLuW0Yq3AQAlbEA9RTj+U7iGrUr38BJsw 53oybIPL2kySGeGiJNim7/pGhVpyOW3cqyMj17eGVJ7klv3phQFdZInLILSG2XvF/ac1 2EHdtW0TwoMFdY/M1rJojGIWZAwiMcGYgYWa52qo6QeUfSTkfLQL/fAReSxQHA/xuluG THTHCHg/AiJeBigeGaIvpZyjEPjZwGYU4wpztWawwBXL7lF8+K9GKgPytp3fGIJN98VJ RmPKjT2VdHlLi1P40tozCdsMatJ7/m5saMtjeoab5aQ4xVTL0FBv9Q0S81M5c/DKLmeJ VBDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/TVcp/tkvMknC8vd87n/vNonkwKkFFfQUJ/ogvtBxO8=; b=y+WCvmNGoEOHcqSxwAHDC2IujhG0uei44k3sYwUDb5HqIEWi+O8bCdQzbdjM7rPVHW guML1imLgpBaut1VmMGGIWaCyRBGftIhdw1MDDn4yDu5+xJjTswBc3jQdbgAjWptXfNE IMWCEmnoi34tV2dW263IYNb+6RZAzwThhljK8G5tMhBgDXEVFqcyrO1ZAcdPGrUYzACp cVi8ehpwyeXcOPnS4XGS2+EU6aIE1696pzQKR1V/S1OR+fxN+SPkI5m9v9JJAVTRfb4r qIb9VPhAf5rKyR2ogbDMsyX1/RXlNokRLrjeVeH+HT2FMZdjrPd0dK5q/mbGo1U8SPg5 WnpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XPw5prEh; 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 g20si1085156edm.288.2021.01.06.07.39.01; Wed, 06 Jan 2021 07:39:25 -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=XPw5prEh; 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 S1726636AbhAFPf6 (ORCPT + 99 others); Wed, 6 Jan 2021 10:35:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:41602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbhAFPf6 (ORCPT ); Wed, 6 Jan 2021 10:35:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 78B562311E; Wed, 6 Jan 2021 15:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609947317; bh=+5LLOXHbEcfB3G60Sp6ym5Voaah7J9yIam8M8z+JwZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XPw5prEhpX98fHp5qsZEEUAujQ4xxdG/Z5uhYhlVl+0j75WeqiTLmYt+lR5Diwkr3 22q2mjYp0/V7m80apMm9abf/P47pkw4V+IydOZY19pylhzKGiCm4jmJIoqD20w7bf9 xeB8sy7EOyKYI1S7llJvyLktojMcDlGgM/srDihyRFy1tO2eoEG0H6teJCF1KZGoFb J4xIhrkumJt9SmcDf8QNYzQUz7AXKkqs2P3ROC882aLSbpaPbRZ5HFU27rdKRnuO97 r6kOMYr0OGAaGTrNd0xZxep318/s/4ReSHJE1MpiBBp3cCudyr1zmUQVy5cwkE+AUI XzJr6D9c7X/Iw== Received: by pali.im (Postfix) id 21E9B44E; Wed, 6 Jan 2021 16:35:15 +0100 (CET) Date: Wed, 6 Jan 2021 16:35:14 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Russell King - ARM Linux admin Cc: Andrew Lunn , Thomas Schreiber , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , Marek =?utf-8?B?QmVow7pu?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips Message-ID: <20210106153514.aoticfuoyvb32diq@pali> References: <20201231170039.zkoa6mij3q3gt7c6@pali> <20210102014955.2xv27xla65eeqyzz@pali> <20210103024132.fpvjumilazrxiuzj@pali> <20210106145532.xynhoufpfyzmurd5@pali> <20210106152138.GK1551@shell.armlinux.org.uk> <20210106152338.GN1605@shell.armlinux.org.uk> <20210106152707.GO1605@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210106152707.GO1605@shell.armlinux.org.uk> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 06 January 2021 15:27:07 Russell King - ARM Linux admin wrote: > On Wed, Jan 06, 2021 at 03:23:38PM +0000, Russell King - ARM Linux admin wrote: > > On Wed, Jan 06, 2021 at 03:21:38PM +0000, Russell King - ARM Linux admin wrote: > > > On Wed, Jan 06, 2021 at 03:55:32PM +0100, Pali Rohár wrote: > > > > On my tested CarlitoxxPro module is: > > > > > > > > Option values : 0x00 0x1c > > > > Option : RX_LOS implemented, inverted > > > > Option : TX_FAULT implemented > > > > Option : TX_DISABLE implemented > > > > > > > > When cable is disconnected then in EEPROM at position 0x16e is value > > > > 0x82. If I call 'ip link set eth1 up' then value changes to 0x02, module > > > > itself has a link and I can connect to its internal telnet/webserver to > > > > configure it. > > > > > > Bit 7 reflects the TX_DISABLE pin state. Bit 1 reflects the RX_LOS pin > > > state. It isn't specified whether the inverted/non-inverted state is > > > reflected in bit 1 or not - the definition just says that bit 1 is > > > "Digital state of the RX_LOS Output Pin." > > > > > > > I also tested UBNT module and result is: > > > > > > > > Option values : 0x00 0x06 > > > > Option : RX_LOS implemented > > > > Option : RX_LOS implemented, inverted > > > > > > > > Which means that those bits are not implemented. > > > > > > > > Anyway I check position 0x16e and value on its value is randomly either > > > > 0x79 or 0xff independently of the state of the GPON module. > > > > > > > > So it is really not implemented on UBNT. > > > > > > There are enhanced options at offset 93 which tell you which of the > > > offset 110 signals are implemented. > > > > That's the ID EEPROM (A0) offset 93 for the Diagnostic address (A2) > > offset 110. > > Looking at the EEPROM dumps you've sent me... the VSOL V2801F has > 0xe0 at offset 93, meaning TX_DISABLE and TX_FAULT soft signals > (which is basically offset 110) are implemented, RX_LOS is not. No > soft signals are implemented on the Ubiquiti module. UBNT has at EEPROM offset 0x5E value 0x80. CarlitoxxPRO has at this offset value 0xE0. So both SFPs claims that support alarm/warning flags and CarlitoxxPRO claims that support TX_DISABLE and TX_FAULT.