Received: by 10.192.165.148 with SMTP id m20csp1290075imm; Sat, 5 May 2018 08:42:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrVz4Xks1rqeyfIw8q5Vx62BJOJc5cE84f2WrSLFTMsuoIT3mCraNSEkAxmUOcDS5tf4uTB X-Received: by 2002:a17:902:b702:: with SMTP id d2-v6mr27077287pls.228.1525534932710; Sat, 05 May 2018 08:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525534932; cv=none; d=google.com; s=arc-20160816; b=xdMizuY5Od0BCtG5Z+XlkuQYYIxAKTLuzRRmMePBJDFsgOHiQ3WVX55pxAMEfHXC8x aCl7OaT3Z0gz0t38D/abMpAOdlGjo2z7SVutCivqolx94V6Okcoob1iRzQsXdh63K8H5 WRwGh4sMSc8Vh3t+A0XyGuIV/6PwD7425NDKjLD46QGA3eWpq5Y0y8eGr8ENzGdT26ro rSdGe4Q8IQ78O7mMt/09XyDPEwphFZkV0CWWXSTdlGLp4pUoxLvmQDR+4E2i0kSAIR93 Xp2/wLdM/q+nQIy0EuEHz6cEbjJUEouMAVfY5hO2yRLFs2BY6CC15/ro2zXXWTUMn5hY jDSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=ooMRisqXRUqg1a3Gu1GurFkyvVlbL9MSAx1WgWTnxdI=; b=E1w5aBW4rBFltKz9LD0703yMHrdVy89IQCMcRKmdBYuTlPXdueKqv11mVDro9aOUy7 P6ZHQ8B6pmLyPsSTiQxN7FqmNFlDJIouFAJP5wHX7eWmq/PEI511s1vUHxlnyljQ6yuT 8pgHnlui2cg0wTxx3waPgDoG2YPWEXyZ875h5DPE1IOm2DYSFtJo6jSBKLgDqdy1RN4j Lg7IO1U2WI6xUmCovFEw9M1anEtNML5J0Z+KC892GjrLo5U0OUx/cm5kJdj5SXXk57Zo Zb4rDAT8l1WQcTbxvOO1g7mdsB+Ogoh1bxrzBVwdh1AiUIID5gFL2WNgU7yPGP/zjIZy Nhig== ARC-Authentication-Results: i=1; mx.google.com; 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 k16-v6si15240497pgn.224.2018.05.05.08.41.58; Sat, 05 May 2018 08:42:12 -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; 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 S1751822AbeEEPju (ORCPT + 99 others); Sat, 5 May 2018 11:39:50 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55164 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbeEEPjr (ORCPT ); Sat, 5 May 2018 11:39:47 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 36A5620714; Sat, 5 May 2018 17:39:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from windsurf (LFbn-TOU-1-408-85.w86-206.abo.wanadoo.fr [86.206.234.85]) by mail.bootlin.com (Postfix) with ESMTPSA id CE9BA203B7; Sat, 5 May 2018 17:39:44 +0200 (CEST) Date: Sat, 5 May 2018 17:39:45 +0200 From: Thomas Petazzoni To: Antoine Tenart Cc: Florian Fainelli , davem@davemloft.net, kishon@ti.com, linux@armlinux.org.uk, gregory.clement@bootlin.com, andrew@lunn.ch, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, maxime.chevallier@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next v2 02/13] net: phy: sfp: handle non-wired SFP connectors Message-ID: <20180505173945.0754d0df@windsurf> In-Reply-To: <20180504172337.GC13899@kwain> References: <20180504135643.23466-1-antoine.tenart@bootlin.com> <20180504135643.23466-3-antoine.tenart@bootlin.com> <20180504172337.GC13899@kwain> Organization: Bootlin (formerly Free Electrons) X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, 4 May 2018 19:23:37 +0200, Antoine Tenart wrote: > On Fri, May 04, 2018 at 10:04:48AM -0700, Florian Fainelli wrote: > > On 05/04/2018 06:56 AM, Antoine Tenart wrote: > > > SFP connectors can be solder on a board without having any of their pins > > > (LOS, i2c...) wired. In such cases the SFP link state cannot be guessed, > > > and the overall link status reporting is left to other layers. > > > > > > In order to achieve this, a new SFP_DEV status is added, named UNKNOWN. > > > This mode is set when it is not possible for the SFP code to get the > > > link status and as a result the link status is reported to be always UP > > > from the SFP point of view. > > > > Why represent the SFP in Device Tree then? Why not just declare this is > > a fixed link which would avoid having to introduce this "unknown" state. > > The other solution would have been to represent this as a fixed-link. > But such a representation would report the link as being up all the > time, which is something we wanted to avoid as the GoP in PPv2 can > report some link status. This is achieved using SFP+phylink+PPv2. > > And representing the SFP cage in the device tree, although it's a > "dummy" one, helps describing the hardware. Just to add to this: the board physically has a SFP cage, and a cable can be connected to it, or not. So it is absolutely not a fixed link (cable can be connected or not) and it really is a SFP cage. Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com