Received: by 10.192.165.148 with SMTP id m20csp4260618imm; Tue, 8 May 2018 05:47:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrU888k8aYl4qlnwff3fVh6rODfg+fMuQxBw7u192mzFsLUJg6LCTfrw7TReADc6xpijmX7 X-Received: by 2002:a63:203:: with SMTP id 3-v6mr25811984pgc.133.1525783671180; Tue, 08 May 2018 05:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525783671; cv=none; d=google.com; s=arc-20160816; b=sh4nkDUss5kQ59HsHEaMPssi7P5Yyw6U80LUtOQldft4IXTKxTsYK+Xe/6ZTKFUdkj UtKUA3GzYpGiCXvetlcbNXWPj9FmGeSIqnbmDep+0CI4S9vUHgQRL7NC2xBpYB9hI7P/ quYo8A6tgthsL4zwK9Hl6sSNzL1P4x2Xuija8Pvc6IHbpBSHjKAqJ86MolTfqs/RMUtd 2nH5xxC2qh1jkgPInPfAa95BWh9Y2qynSvrfSDRBSGuQjUXuZWJzsSCU6zEMzW3dqskX VaZd/RI+uQMB5ediIId+JCbdP8vbsejjtKFaqfiZfWX5x+mgYjGToSySbs4C/HwwutXy g6mA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=JiDig6gXDFfmZhr/RfxLFVUAUv/R7bu2JgrBtMFkeMY=; b=WOUaOpeTaUqtqzlvu9rKZB5LvhxMwMe75vvsSoSMp9Nqcn6TecKsOnlixR3cHSuNE0 sFTJkMQOkunOgjFdi8n763sRwZJgSIZ8FVYWmc832kckjDS2WFbYskZ3YPpO2v0lv9et LZy1i8Mitwf/SFT/jpTO0dJ4hmVTEG9cMOGdPeFXq+hwGQ9K4c4ZTIGEunquIMWNZpnH k5N7r/JxQR47yVW88sAHbO73bKhTGGjaE+LPvqc7KqUQwTUNQwEacvUdcDDmMuBA57SF 8R8V0OT5xqAy+wN5+15HWzEQpnITLzPyk4PK65g9hIEaEyaMPYPWA8Ma5MXf/jMnsrX9 OGIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=RxVaEKzk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z80si22703781pfi.7.2018.05.08.05.47.36; Tue, 08 May 2018 05:47:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=RxVaEKzk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1754950AbeEHMqJ (ORCPT + 99 others); Tue, 8 May 2018 08:46:09 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:52540 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754444AbeEHMqI (ORCPT ); Tue, 8 May 2018 08:46:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding: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=JiDig6gXDFfmZhr/RfxLFVUAUv/R7bu2JgrBtMFkeMY=; b=RxVaEKzkLUKZ1pPs6TPXfSXi4 ecPTJgvRVWKGyanoH5+t1CCOWcrbilB4cWazv6m5JvVDKJpyfbmZiUo1MN03nbrPSrLmIqXQRuBN9 1hW1UKtcVxepuTf9ZJtlTF3QcsrD1IebBlp74tWD6C/ReCbwAjkEAiIiIOD2t13wddadk=; Received: from n2100.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:4f86]:46093) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fG20D-0006t4-4d; Tue, 08 May 2018 13:45:57 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1fG20A-0007Uy-H5; Tue, 08 May 2018 13:45:54 +0100 Date: Tue, 8 May 2018 13:45:53 +0100 From: Russell King - ARM Linux To: Andrew Lunn Cc: Florian Fainelli , mw@semihalf.com, ymarkman@marvell.com, jason@lakedaemon.net, Antoine Tenart , netdev@vger.kernel.org, gregory.clement@bootlin.com, kishon@ti.com, nadavh@marvell.com, linux-arm-kernel@lists.infradead.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, stefanc@marvell.com, maxime.chevallier@bootlin.com, davem@davemloft.net, linux-kernel@vger.kernel.org, sebastian.hesselbarth@gmail.com Subject: Re: [PATCH net-next v2 03/13] net: phy: sfp: warn the user when no tx_disable pin is available Message-ID: <20180508124553.GO16141@n2100.armlinux.org.uk> References: <20180504135643.23466-1-antoine.tenart@bootlin.com> <20180504135643.23466-4-antoine.tenart@bootlin.com> <20180504171425.GA17233@lunn.ch> <44545AF4-64E3-4772-B5BA-43CCF2321025@gmail.com> <20180505205242.GA2876@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180505205242.GA2876@lunn.ch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 05, 2018 at 10:52:42PM +0200, Andrew Lunn wrote: > On Sat, May 05, 2018 at 01:38:31PM -0700, Florian Fainelli wrote: > > On May 4, 2018 10:14:25 AM PDT, Andrew Lunn wrote: > > >On Fri, May 04, 2018 at 10:07:53AM -0700, Florian Fainelli wrote: > > >> On 05/04/2018 06:56 AM, Antoine Tenart wrote: > > >> > In case no Tx disable pin is available the SFP modules will always > > >be > > >> > emitting. This could be an issue when using modules using laser as > > >their > > >> > light source as we would have no way to disable it when the fiber > > >is > > >> > removed. This patch adds a warning when registering an SFP cage > > >which do > > >> > not have its tx_disable pin wired or available. > > >> > > >> Is this something that was done in a possibly earlier revision of a > > >> given board design and which was finally fixed? Nothing wrong with > > >the > > >> patch, but this seems like a pretty serious board design mistake, > > >that > > >> needs to be addressed. > > > > > >Hi Florian > > > > > >Zii Devel B is like this. Only the "Signal Detect" pin is wired to a > > >GPIO. > > > > > Good point, indeed. BTW what do you think about exposing the SFF's > > EEPROM and diagnostics through the standard ethtool operations even > > if we have to keep the description of the SFF as a fixed link in > > Device Tree because of the unfortunate wiring? > > I believe in Antoine case, all the control plane is broken. He cannot > read the EEPROM, nor any of the modules pins via GPIOs. Correct. > For Zii Devel B, the EEPROM is accessible, and so is the SD pin. What > is missing is transmit disable. So i would expose it as an SFF module. Agreed. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up