Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1310439pxb; Sat, 9 Jan 2021 15:22:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU2YarOAl79q1ms3ch/IxSzu0g3P84j/tpj5ZMVMH+VXqGnJFEceryCk9czrZTk2U65juL X-Received: by 2002:a05:6402:149a:: with SMTP id e26mr10165937edv.150.1610234521094; Sat, 09 Jan 2021 15:22:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610234521; cv=none; d=google.com; s=arc-20160816; b=Dhr6pt/1RgrN5lN5aEDahRxLkHpHomeVhJO3RUG00cvuDmSaqIlFrr/rmCrrOtikng 3tTd46AkfQDr/lVwxGU9jwi6+zR6kPjM+iwG16q+SdNoa1PW2LSN2sK3WpYBxeUXpw3e E+PkSOU2kYLfc1epiQIYXdfaL9U/wFzOsiRUYF7pvWA0Op3LQbUdZOQtT1A4fs33JvBc sujbFq6fKthc1ZMvkg5jusyEoJhtPjw6Tbq8UyhcqdioyEJRlaQSG2fj9hZj9CIe56MC pNWKe22TJMF5qbDrwaxzmQtjmq8Ne2aJAci6yxYn2grlPkpHTNohjW3cK9fb35msok/d NqMg== 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=o/+NVcgrx8JqxXvcbVLVPO61C9UbG6h6mmTwddD0Gr4=; b=EZqtsJ936tIrqY6ZyPYTMys2m+gvItRGgoeAVKqN1X2lIEz93Ijh/7PdyoW0LFPyAz WvegyeMeR07R+gzOtabZU2qzN1jddXgXjbspAmceldC6LSXsJO3IfON3p0Rq/3jRmVyI ixpyhRnGHzghzH7cTEcAbpYvt3h3zZUMD6xDXT2Fo/AyUVjRcvmb/4F5MtJryUI/WHSX ZNNIZNgFXiYGHiQ/D1cp66Wy8frHUNQReunJrbK0Ftrd7dKsSi1IN+11yLfBz0QUSXQT Oqi0Bs/+mQjytueYl0hXTFkadMP9Rb03dEgZIdclyY68x5TE+0FAzhMShcmox2NuOo1v hMVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=gsQph+Lw; 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 k26si4870021ejc.545.2021.01.09.15.21.37; Sat, 09 Jan 2021 15:22:01 -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=gsQph+Lw; 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 S1726249AbhAIXVJ (ORCPT + 99 others); Sat, 9 Jan 2021 18:21:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbhAIXVJ (ORCPT ); Sat, 9 Jan 2021 18:21:09 -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 95C1AC061786; Sat, 9 Jan 2021 15:20:13 -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=o/+NVcgrx8JqxXvcbVLVPO61C9UbG6h6mmTwddD0Gr4=; b=gsQph+Lwv6uhcr9c8jxJtkdV3 amHs55Qny3BrsypHppdCL8mzydhBf4HY9Lpb7Dbg69Efrf/HbyqoWjcE8Gr4dGmXtWHYz9WWhEiJ+ SD3Nx225rDT+t/CBmE2tNFeWTC4s2wQrTOZzcqIEJd69YrEhd50U9zi2qzTdmj9J2ytuADVL6Egmz oimyRbwnlfbdeK/PyfjmLidgejqBv5QVhuiOBf8G27wEx3xqw92DHfPWmvdZyi5V7Edl8YBVq3O12 XVh7J7eIZj3Rxm5EBclH1dvBK5F1sax67xGdM3A24zi1t//qxhyB1U+nCpEfcXVdhUlUlIczMoTip cZTdPA9dA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45904) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyNWW-0005SU-3p; Sat, 09 Jan 2021 23:19:56 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kyNWU-0003aS-Kg; Sat, 09 Jan 2021 23:19:54 +0000 Date: Sat, 9 Jan 2021 23:19:54 +0000 From: Russell King - ARM Linux admin To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Andrew Lunn , "David S. Miller" , Jakub Kicinski , Thomas Schreiber , Heiner Kallweit , Marek =?iso-8859-1?Q?Beh=FAn?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] net: sfp: assume that LOS is not implemented if both LOS normal and inverted is set Message-ID: <20210109231954.GC1551@shell.armlinux.org.uk> References: <20201230154755.14746-1-pali@kernel.org> <20210106153749.6748-1-pali@kernel.org> <20210106153749.6748-3-pali@kernel.org> <20210109154601.GZ1551@shell.armlinux.org.uk> <20210109191447.hunwx4fc4d4lox5f@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210109191447.hunwx4fc4d4lox5f@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 Sat, Jan 09, 2021 at 08:14:47PM +0100, Pali Roh?r wrote: > On Saturday 09 January 2021 15:46:01 Russell King - ARM Linux admin wrote: > > On Thu, Jan 07, 2021 at 05:54:28PM +0100, Andrew Lunn wrote: > > > On Wed, Jan 06, 2021 at 04:37:48PM +0100, Pali Roh?r wrote: > > > > From: Russell King > > > > > > > > Some GPON SFP modules (e.g. Ubiquiti U-Fiber Instant) have set both > > > > SFP_OPTIONS_LOS_INVERTED and SFP_OPTIONS_LOS_NORMAL bits in their EEPROM. > > > > > > > > Such combination of bits is meaningless so assume that LOS signal is not > > > > implemented. > > > > > > > > This patch fixes link carrier for GPON SFP module Ubiquiti U-Fiber Instant. > > > > > > > > Signed-off-by: Russell King > > > > Signed-off-by: Pali Roh?r > > > > > > Reviewed-by: Andrew Lunn > > > > I'd like to send this patch irrespective of discussion on the other > > patches - I already have it committed in my repository with a different > > description, but the patch content is the same. > > > > Are you happy if I transfer Andrew's r-b tag, and convert yours to an > > acked-by before I send it? > > > > I'd also like to add a patch that allows 2.5G if no other modes are > > found, but the bitrate specified by the module allows 2.5G speed - much > > like we do for 1G speeds. > > Russell, should I send a new version of patch series without this patch? I think there's some work to be done for patch 1, so I was thinking of sending this with another SFP patch. It's really a bug fix since the existing code doesn't behave very well if both bits are set - it will toggle state on every RX_LOS event received irrespective of the RX_LOS state. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!