Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp903414pxu; Wed, 6 Jan 2021 07:24:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyC10Bx9fN6i39vdvNBvGutd8v9zlCFm9+LEW/fdoWPJ+Y2AmI1x45gKBiWwgpIiPakRyWt X-Received: by 2002:a50:bacb:: with SMTP id x69mr4268400ede.39.1609946689511; Wed, 06 Jan 2021 07:24:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609946689; cv=none; d=google.com; s=arc-20160816; b=RD+7JTzLHg/V4qnPBox4yIMejyDyrkC6pffDiATV+QO5+mToFMwdot9Rv8nO+j0ybt N7zRVIBFn0rTGiIErjjC8KwTqzqFN9qkwVc8UW2paAxwhi3pMlvakFC+D/JlwNuzFPZj 0/cpjKfYi85pYVENAnCaxvVYP1DNytBr/eF2TVz+8ar0b57d0jIcrstgONurfKVLcUJn 9ZAHQpymT68dCfo8SsLAIaLFAcnygndHiuTOhDxczdB+GGr44G9VUlvoL6UCSuirT3fY VoP8k2+CYrk/YQxKmLGUZdVzBtKm9393t/SoJFzxPSx2no9xP0fYLXgva0wQ2+GrqjJv Vv2w== 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=XbYn0sE+8caLJmEuS8DK8Q++aIHilNF9bPslhNkLP00=; b=EblanHTIPY9yHhhOfgw7tzXb60i6UoOZwVJN+Ikpz7b/K+Cn16fyDMwzGP/fhCJDtM RVI0i1/Ydz79RPPuseq4YUFlXnWTtifRe1iVfFsgxKG0N9mi9nEMMkD99hKh74LESgXR tAPmfwYNVfAZYmoPxM/iGPo0UI/wLBT9bQ84knODS7N3FNDDfFf0DAO0J+g/E0SmcdGZ jxeJ5DuaMjcoE3UU6LjxQS+gcNdOWTC4JwLDcfY8Rq6WsijK0FHZ1TQmvIaqT71GG1Ke D2xJgV3nBYNWfPD1Kj09MfigcwODsMcH2zVoN25hldMaS2KpWIHZalz9gOZKxniKOSkm 8Qkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ROxI9vKN; 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 e17si964534ejx.663.2021.01.06.07.24.26; Wed, 06 Jan 2021 07:24:49 -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=ROxI9vKN; 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 S1727052AbhAFPW1 (ORCPT + 99 others); Wed, 6 Jan 2021 10:22:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbhAFPW0 (ORCPT ); Wed, 6 Jan 2021 10:22:26 -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 0FDFDC06134C; Wed, 6 Jan 2021 07:21:46 -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=XbYn0sE+8caLJmEuS8DK8Q++aIHilNF9bPslhNkLP00=; b=ROxI9vKNkqA4PHf3Vky2YwPsi kuK2rjMzhmlZkrpEXYe1s3d6cCkJhQczFXaQIrQXPXxBwvZYRVd0YITYogyJT6wUpkSo9gkV0dIYS cCxdOxlzxWgs2NSB3F48UXZrTdw7WbTjlozVsK+jWH9sb5f+77xETN6/m8A542/Le/gERTdXJzzIr 3XVPSvIAqZwc0FJooz4PNDBZVbGlDHLkhWKuVRT8IwQAJSlPuV3K8Hp34vMYacb667Yngt+kruC2K GAQchOhjTF6M727y7k2Phn/N+z8LFutVIy8xbgInctPSOH0hb5BYX7KnS3UpQEE9XA7ot5nF4cGXN lOywUIWow==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45186) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxAd2-0001jW-Ky; Wed, 06 Jan 2021 15:21:40 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kxAd0-0000Kb-43; Wed, 06 Jan 2021 15:21:38 +0000 Date: Wed, 6 Jan 2021 15:21:38 +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: <20210106152138.GK1551@shell.armlinux.org.uk> References: <20201230174307.lvehswvj5q6c6vk3@pali> <20201230190958.GW1551@shell.armlinux.org.uk> <20201231121410.2xlxtyqjelrlysd2@pali> <20201231170039.zkoa6mij3q3gt7c6@pali> <20210102014955.2xv27xla65eeqyzz@pali> <20210103024132.fpvjumilazrxiuzj@pali> <20210106145532.xynhoufpfyzmurd5@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210106145532.xynhoufpfyzmurd5@pali> 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: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. We already have support for these, but only when the corresponding GPIOs on the host side are not implemented. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!