Received: by 10.213.65.68 with SMTP id h4csp1529457imn; Mon, 19 Mar 2018 06:44:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELsKebaNZme/QfJPNyw9nB1As6zhKCK6KXZcPr41JLm5SF8vNzapXnNOzmQtB4M0/MJWMgil X-Received: by 10.99.148.17 with SMTP id m17mr9251383pge.140.1521467064536; Mon, 19 Mar 2018 06:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521467064; cv=none; d=google.com; s=arc-20160816; b=yHF+chvjto4yVGfJmV/8AyJTiWpRchttp/buGcj8FeIs4vWA7y8mIyAuXlUCQ2iT9v B3ZRhBZzstbwZp8MrSTlmsp9AHrMbmHELVwDp84u1ZmfrFZJOawwkH3/wNCAlV7zclYO xx7NKWbFVqMYHWTWD9hChCIYNHwalcmJD54EE4LBjNKe/0qFUZlO7LdoPzaxQw0/bp12 XduatrJi6nyKr4hKb5J7dXwLvc1W0W10zQK0LYHDvIQAZNATTbIaDTLfRTMotwON7E1S taw8SyJTHlj04nlgTg6HYRxwhg53CUDmVdfnGXmeqi+aUnAdTGoKo5dUegb05JaydZjN lkrA== 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=t9IgWd1sigaCWGvKj87fAHv+gJUmSdhoB1ve5oIFbzg=; b=VWqS3WBXfzSIvmARwIgnJFsI/jXrFJuHkbjASbkqyXKan1AVnBjpmVxNU4BvxurUBE OoeovDTigf453iPrEAbLkgC0t9jIhUW/QFXAg53NWMmTyjj/nAgTM1FGEnACH3Hg9TTC mi0nYlcLzgIXS5EA412qn1+sw1aYRUE2NntAkQoUWojUNQrCRWzcWmVxrBqaPtOmzgoC mgZIOQHE4UYq7atikysodw1SZqf8nt6TSpI3KwJD4gjhFHAQpjXVoVbKR5uxcqtyaXBv V7E1zAXKTKdKgQN+LU5P6T9TKqQ/kDwY/Rri7bHujTx98XG3ySDXS9ftTTWB+zFqHglG O5XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=Cw3X+Z5q; 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 q14si28684pgr.311.2018.03.19.06.44.09; Mon, 19 Mar 2018 06:44:24 -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=Cw3X+Z5q; 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 S933433AbeCSNme (ORCPT + 99 others); Mon, 19 Mar 2018 09:42:34 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:40994 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932989AbeCSNma (ORCPT ); Mon, 19 Mar 2018 09:42:30 -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; bh=t9IgWd1sigaCWGvKj87fAHv+gJUmSdhoB1ve5oIFbzg=; b=Cw3X+Z5qLarZknNRcNgnFgErBpVfe0OXzzOXX+YGpOUu6eTmtITfYghWQxt0hHKparE0UAO0S7plNM/wKlD2aZrR0wvQf5Ttvew1eshqzJXvYBzyhp5CnmtwA6yaRnRLpcwrC6bmEEir3F8WyJ2CqBPBpwwhtz3qHjYVa1yE5aI=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:46831) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1exv3J-0008SZ-17; Mon, 19 Mar 2018 13:42:17 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1exv3E-000789-0D; Mon, 19 Mar 2018 13:42:12 +0000 Date: Mon, 19 Mar 2018 13:42:10 +0000 From: Russell King - ARM Linux To: Stefan Chulski Cc: Andrew Lunn , Antoine Tenart , "davem@davemloft.net" , "kishon@ti.com" , "gregory.clement@bootlin.com" , "jason@lakedaemon.net" , "sebastian.hesselbarth@gmail.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "thomas.petazzoni@bootlin.com" , "maxime.chevallier@bootlin.com" , "miquel.raynal@bootlin.com" , Nadav Haklai , Yan Markman , "mw@semihalf.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [EXT] Re: [PATCH net-next 02/10] net: phy: phylink: allow 10GKR interface to use in-band negotiation Message-ID: <20180319134210.GA26979@n2100.armlinux.org.uk> References: <20180316103351.16616-1-antoine.tenart@bootlin.com> <20180316103351.16616-3-antoine.tenart@bootlin.com> <20180316155307.GQ9418@n2100.armlinux.org.uk> <20180319085252.GF4519@kwain> <20180319111205.GB2743@n2100.armlinux.org.uk> <20180319125227.GI4519@kwain> <20180319125953.GD19795@lunn.ch> <54e290a192734831b5db22191f056a81@IL-EXCH01.marvell.com> <20180319130823.GA22306@lunn.ch> <02614799e30f4823a97fca0e9f29b14b@IL-EXCH01.marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02614799e30f4823a97fca0e9f29b14b@IL-EXCH01.marvell.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 Mon, Mar 19, 2018 at 01:19:24PM +0000, Stefan Chulski wrote: > > > > -----Original Message----- > > From: Andrew Lunn [mailto:andrew@lunn.ch] > > Sent: Monday, March 19, 2018 3:08 PM > > To: Stefan Chulski > > Cc: Antoine Tenart ; Russell King - ARM Linux > > ; davem@davemloft.net; kishon@ti.com; > > gregory.clement@bootlin.com; jason@lakedaemon.net; > > sebastian.hesselbarth@gmail.com; netdev@vger.kernel.org; linux- > > kernel@vger.kernel.org; thomas.petazzoni@bootlin.com; > > maxime.chevallier@bootlin.com; miquel.raynal@bootlin.com; Nadav Haklai > > ; Yan Markman ; > > mw@semihalf.com; linux-arm-kernel@lists.infradead.org > > Subject: Re: [EXT] Re: [PATCH net-next 02/10] net: phy: phylink: allow 10GKR > > interface to use in-band negotiation > > > > > > If they don't have PHYs, how are the connected to the outside world? > > > > > > > > Andrew > > > > > > By external SFP or direct attached cable. > > > > Maybe i'm missing something, but don't you just need to add an SFP device > > in the device tree. The SFP code and PHYLINK will work together, query what > > the SFP module is, use the GPIOs to determine link up/down and module > > present, and tell the MAC how to configure the MAC-SFP link? > > > > Andrew > > phylink pool SFP loss signal to determine link up/down? No. Phylink was merged along with SFP cage support, which includes a DT description for SFP cages, including the various signals for the cage. The SFP layer will take care of monitoring the cage and conveying state information to Phylink. Phylink's job is to work out how any SFP module, PHY and MAC should be configured and to determine the link state based on information supplied by or requested from each depending on the configured state. Please do not try and support SFP cages as fixed links. They aren't, and such an approach will always have sub-standard link state monitoring. In an optical setup, the SFP LOS signal just indicates whether there is sufficient optical power present at the receiver. It doesn't indicate whether there is a valid signal there, or whether the chip at the other end of the serdes link can decode the signal. That has to come from the upstream chip, whether it be a PHY or a MAC. SFP optical modules do not perform protocol validation - they merely convert the serdes electrical signal into a light signal and back again, with varying amounts of monitoring on board. -- 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