Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp905617pxu; Wed, 6 Jan 2021 07:27:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8bSuB4PWizdPMXofCy8r4r/mpYcBbV03rFmftSQYd087M2CNePe4I7Uaz88SxThxgYa5y X-Received: by 2002:a17:906:b79a:: with SMTP id dt26mr3047311ejb.337.1609946877635; Wed, 06 Jan 2021 07:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609946877; cv=none; d=google.com; s=arc-20160816; b=GF/SYPH9Se5MXeU6Niv22Jk3C1jBZZjmjePYIKNDEJrjrxve6NltMgTuG8gGA98VWn dExa8jx4e4wvnPZARQBCy6zO/37fpHnMwTl9HeVT+64fkQQISqK2gMdJJy2KMrRRgSZ7 kjFn5slnXXztTTEeojQxp5eQ4TuKkOnj9YGe6Nx/LbdcpCE+2/WllSsMfxq3S2aE/3Ly zzan3zYBGTRf+W8dhSZbForPuNSXndAM6VhWbJz8gGZfk/Tk7urYn2izAUaCBx1rEwKC ttwDKDyVAPlL9+e4sHUnNJJ6I06H8+BsLIHt7OKDGL467OfECMywctPFtLHwNV6zVkju 4+Bg== 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=hNXRA1N/lF5UZHqtQKnDiy+PmmxY1oztmX6RyYI7W5U=; b=OHGTjPmu4VXOVmXKZPhBl2Z/kjcfhvJIxXXwCjsPl/V66hrD8/4Lt9so513snMaTYN 3BpgaxeXGCM0ZzgFXJ3NghhiR7qnKBKc9t/Rg2sHqg8R1ZGHKYpGtC/7h5LRVC84s3X2 OXkxvjnvbCP9N/lfx3HmtdQFQO5UZzFwpVqCAL5wgNq0rtnJnSCZ1R2NCJA/pJHe+DND rNNHmtrkQKHR2JJSrGPR3Uq98Cdkocd0pVrLjzlhJNPEEgSPAjm6NctqxUzeREjZuJsT fVPd/mv7OaozcverDTb4dX8PeMwIT6XUehS3YtgGFtTSCvcNBBws0z69KaEql3dKkaW7 FjWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RH10tNZp; 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.27.32; Wed, 06 Jan 2021 07:27:57 -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=RH10tNZp; 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 S1726735AbhAFPYY (ORCPT + 99 others); Wed, 6 Jan 2021 10:24:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbhAFPYX (ORCPT ); Wed, 6 Jan 2021 10:24:23 -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 ABC23C06134C; Wed, 6 Jan 2021 07:23:42 -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=hNXRA1N/lF5UZHqtQKnDiy+PmmxY1oztmX6RyYI7W5U=; b=RH10tNZpLk8yPwd/05sn0bHC0 F7vEg3U8riC3I3ml5BcmAbjjNDi8bjKRuRkUTZFBt4azGEUTiVFd7Pdz9alo8J+Ru5TKfdBToiCEV i/Gnc3W9TPbyHqLrYGQ+3JpdtHwaCyCk09Koj7gL7EZ55ujsPelMNM+ae9PpEEiDhxiNhL84as0Hc V2ytOqAWNwMmr2crlw7pKnq8L/sL3VBqU49s1CeO6ooVkd4ytW81xfn9CDZSpWsjm78pxpveJcNUA ATybVLoIz/M95fFdvV5Ke1/S3JoHHqngKRLd59beFZMJdFg/MUHI8cPGxg97G43589d9EBJsHGOvN SOUSppHBQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45188) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxAex-0001jj-8U; Wed, 06 Jan 2021 15:23:39 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kxAex-0000Kr-0z; Wed, 06 Jan 2021 15:23:39 +0000 Date: Wed, 6 Jan 2021 15:23:39 +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: <20210106152338.GN1605@shell.armlinux.org.uk> References: <20201230190958.GW1551@shell.armlinux.org.uk> <20201231121410.2xlxtyqjelrlysd2@pali> <20201231170039.zkoa6mij3q3gt7c6@pali> <20210102014955.2xv27xla65eeqyzz@pali> <20210103024132.fpvjumilazrxiuzj@pali> <20210106145532.xynhoufpfyzmurd5@pali> <20210106152138.GK1551@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: <20210106152138.GK1551@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: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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!