Received: by 10.192.165.148 with SMTP id m20csp1502982imm; Sat, 5 May 2018 13:53:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo81aW9YsXDQxIX4ffz/cIE6UqH6RixmhCcWh754Y13x5oTMaO2Dq2iisQquLR76YmsJlF4 X-Received: by 2002:a17:902:7c95:: with SMTP id y21-v6mr32576699pll.76.1525553618974; Sat, 05 May 2018 13:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525553618; cv=none; d=google.com; s=arc-20160816; b=sfWgAVEvXdPU1qhDzgn+eN/xOssSTSO1JOzLyvK3f16b+ixomNhnZvuz4Bx46p3pUC YtL9B9npHchPzvRYqKFCmxe7INOFFftHGrjLS8mJjeepAdCEGBkCLoRVosWv3dqWMVTC 01eYzXvGsiGekyMa/XncZwkmCHE6wRX/tR1bPTydNqj4GV3Z0nGc0XYP8ZXRIOk6FdEp vizjMrvgSAGwmlUtXbaPFUXaGnrPCVEfy8oYw6RoCbyZH0nyLfk7VDDaSJvZfJVTxq5P 5MNkWk84MJeDu/OUX6aoaPqJBxszA8HzHlJB5KhEsu1t/RRIhX9oGHs99Nb0QqOy2wVR x8Pg== 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=zkqTUt5yElKWAH9Ppw6kXmKS7x08cYtQxyatnrPIDao=; b=EQHp3cS/4ceL0770T+c0nQoBHtLpKy+l3IQnWbSysr1ljtW7LQynAvobpjBJh7rmy+ Urtje1oq4VL6FaUuWa+8SarE4xIAY1QRIHnuPyn81WkSXoRdETPkysioZfZND6pcULlJ 9PynhH1qg9VJduUXH0kVtceTdeXga3WOxPUzaofcqQ4K7y/IURubaghIcjsumYbW8XHw 1HP+RJeS6YVrAQQsAhmS3NpbR+92weDgRMxqRV1yEyYjkmR3oGlaKQN3M9UeeFY0rxIA /yHcODk4Kh6iKnrLCGAhaTmBulRhg3eRgnm1+ceebEI4yfkLUQvvZGHJriH8dqe5tZ7o +3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vJMEfNYN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62si19190508pfg.218.2018.05.05.13.53.22; Sat, 05 May 2018 13:53:38 -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=pass header.i=@lunn.ch header.s=20171124 header.b=vJMEfNYN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751832AbeEEUxN (ORCPT + 99 others); Sat, 5 May 2018 16:53:13 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50380 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbeEEUxL (ORCPT ); Sat, 5 May 2018 16:53:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=zkqTUt5yElKWAH9Ppw6kXmKS7x08cYtQxyatnrPIDao=; b=vJMEfNYN8fVKnPeLXlXn4YFy49fkrKudFaVB84fKYTeOxVD1QSyEL9pwmTx9n4ZwUVX+3Yc3kAWyStai4qhtivNHelVhwfOGVh6p1T7k6gCyKG+PixOTwnSN2UQuUrK68k56mtDWgZKhx95aG1lDCkOy6dgGlga3Cwaelgh1Rqs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fF4Ac-0000s6-CX; Sat, 05 May 2018 22:52:42 +0200 Date: Sat, 5 May 2018 22:52:42 +0200 From: Andrew Lunn To: Florian Fainelli Cc: mw@semihalf.com, ymarkman@marvell.com, jason@lakedaemon.net, Antoine Tenart , netdev@vger.kernel.org, gregory.clement@bootlin.com, linux@armlinux.org.uk, 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: <20180505205242.GA2876@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44545AF4-64E3-4772-B5BA-43CCF2321025@gmail.com> 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 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. 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. Andrew