Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp906770pxu; Wed, 6 Jan 2021 07:29:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWhn07DXsMq2juUPiI4yjtSM3K0hLdvJeYnMJo5dVI4onktaM5/SsDwBk4cfsriT//sSuO X-Received: by 2002:aa7:c652:: with SMTP id z18mr4143963edr.60.1609946974064; Wed, 06 Jan 2021 07:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609946974; cv=none; d=google.com; s=arc-20160816; b=sLgI2FVmKlBDnx7umbcwNxnzAAabxuD4e23KgJImeeJDJVh8zOXCr1iIm08VQ355F8 gTNAm8abd5EEIx0fQdLdHHwQJwe6FB805pV8B4cQJqvvi3iykZ0FvGLYP/fufLcOGRly 3DHid9WPqW9AohlxWVXXvlxellNxmScKdsMYy71mDaKotvRnKcYuGYMq7D4MG4a4E2pa +sy3Nn9T6g5YEzOtjEh7viNX+YqpCImFMuE67uexLD830HlU4bUdWJFOBszDKrIMTxqD gPC8/92W3zgUkJU95fchyXe3WveU8F2gpa2JoX06ih2l8H6x/E4Vo4PG+6Qdpo6gab3s Etjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PO444vyN9SKLGQ8W6QVpVfS28Mi7lKRCIfYcrcAFIC0=; b=l1fZG8sLW73dNk3WXYgf55dm+u1DcsV88j+4s+O+xcq0WoXEl1EX4G6lCruo2P86m/ 3Pv2s38qQzLwfg/bMyOXo5DvuFyQ/oUKIgBNurjqDt8uAMMMCqnJuzUg3seaR1GR/Usk Mq+rQ/erOVbkgv4dv5IcfPnxMJHDM9oT/IPNegoqxdrLywzTLEQi6I83p7wMk8kr4Kho /OWx+qwMsYW6907ZbCH2XMCqZGgnEeX5LFh34uuRibHylAwE12tU76gb3UfHDdDXGEXu POiKQLRZrv4nNwrx6Bptbh90mp5U0YUFRS44uumg7+L4utP+XhPvpMfsMhmtLbijT+aO ThCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=cLJfkODI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg10si1007478ejb.120.2021.01.06.07.29.09; Wed, 06 Jan 2021 07:29:34 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=cLJfkODI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726740AbhAFP2I (ORCPT + 99 others); Wed, 6 Jan 2021 10:28:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726638AbhAFP2H (ORCPT ); Wed, 6 Jan 2021 10:28:07 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8842C06134C; Wed, 6 Jan 2021 07:27:11 -0800 (PST) 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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=PO444vyN9SKLGQ8W6QVpVfS28Mi7lKRCIfYcrcAFIC0=; b=cLJfkODI7a7jQBjERS8zK6Vpn iAg318ysbk5//9C6hewXT8zrfsVFCIPJbJUbAsTSubz0QohjB97hFEMZ9cbF9cmV10khmahEUitKo KaJDoHuKTIllGpAEm4CU2z5lUXJGoILOEi2yv1xLmfJesqQnKS9x02NZJIr/Xhca2q2dtw1sToMEF hgYvDK7bBilHzev/3MU0uMLLKpvU01u13yaIdinPzZrUW240SEtipk2j6VzhavrE2WKafyvKzil4G A17BAgyMp9n/gWLTm8kGfekd3a22lrmXWONlRJW8R/pmCP/ZLi8tNMHQ4pq2YSFMcW6mnON7tpyF8 kom4wFoMQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45190) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxAiK-0001jz-61; Wed, 06 Jan 2021 15:27:08 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kxAiJ-0000L5-Pi; Wed, 06 Jan 2021 15:27:07 +0000 Date: Wed, 6 Jan 2021 15:27:07 +0000 From: Russell King - ARM Linux admin To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Andrew Lunn , Thomas Schreiber , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , Marek =?iso-8859-1?Q?Beh=FAn?= , 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: <20210106152707.GO1605@shell.armlinux.org.uk> References: <20201231121410.2xlxtyqjelrlysd2@pali> <20201231170039.zkoa6mij3q3gt7c6@pali> <20210102014955.2xv27xla65eeqyzz@pali> <20210103024132.fpvjumilazrxiuzj@pali> <20210106145532.xynhoufpfyzmurd5@pali> <20210106152138.GK1551@shell.armlinux.org.uk> <20210106152338.GN1605@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210106152338.GN1605@shell.armlinux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!