Received: by 10.213.65.68 with SMTP id h4csp1510052imn; Mon, 19 Mar 2018 06:15:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELuRfyY7WGYB54nrhvo6ib+Z3hPR64CvL8eKEx5l4I0HO0Ae6swRlr3KURHiRtD460Yh+I13 X-Received: by 2002:a17:902:5328:: with SMTP id b37-v6mr12713575pli.332.1521465302259; Mon, 19 Mar 2018 06:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521465302; cv=none; d=google.com; s=arc-20160816; b=XOB/o+2L6z8zvHMiBKhuxBdzl9RIcavlJMkWmy9kLScTsvGgIPtE1i3eJrjZYwrzQ0 mlRrvxNlP8KARZD4YHku2MgLFuy4cI+0m266/v5BRTgllzyn2q/a9k9u12iyLIrEXVNO lmZmWB/fS0STFIHdUDjoXWhUhUMwJSgBctphwN3HDjiMY3rpfK/n3QRO1I6cEuPagYVK GE526vMD8M33fQg5jbJneRhxVm9uqB0lMU8TtsiBOy0xmomYNcpccFmc8uo3U4LR/OuY 7I0mN8eFe9zyGgCiGRwoP6Z3ELpcR2RltnRUPQ0lM8UhQycZ3kt6xF/MmXfA0+iMXu/P cxfA== 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 :arc-authentication-results; bh=Rr7u1BkMM7lLIuXXiqcFdEixCQ+HqjUHkllp/TyUmn8=; b=SXBKYK1+VIN0USfr8TuCL0XzXv9vxNDOzapsN7en1xh4nzYNATnGgMa9vgUNxwEckR CHtpPxFRTmhhLsucdgxFtpmLgdB2ox/2KMrBDoAwBuwPYcTwXl3ZmDiQHUFO1X8hpbVk Wu3+qonIYIIVMwd0G7114P0wrLEVeFTCdx+8Nmv2PAU4RZF1tQxVzKUNi5boS/Ti4kA+ DP0RIEdtKj1i0Msj+TvU7YyRABG7cneq9haAmi+IjeMkFJUKOszjVzAalPpm8lobQI4+ FzwZjesuy8jeCHy2sUinqUZjhncOZCS9uaNvCCdk1jsWVuc1S4DsRcd93QSnKvDX1jUv B2lg== 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 z5si10478120pfz.382.2018.03.19.06.14.48; Mon, 19 Mar 2018 06:15:02 -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 S933021AbeCSNNq (ORCPT + 99 others); Mon, 19 Mar 2018 09:13:46 -0400 Received: from mail.bootlin.com ([62.4.15.54]:58870 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932793AbeCSNNp (ORCPT ); Mon, 19 Mar 2018 09:13:45 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 0B06820713; Mon, 19 Mar 2018 14:13:43 +0100 (CET) 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 localhost (nat.foo.tf [163.172.35.26]) by mail.bootlin.com (Postfix) with ESMTPSA id B177E2036E; Mon, 19 Mar 2018 14:13:42 +0100 (CET) Date: Mon, 19 Mar 2018 14:13:43 +0100 From: Antoine Tenart To: Andrew Lunn Cc: Stefan Chulski , 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 Message-ID: <20180319131343.GK4519@kwain> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180319130823.GA22306@lunn.ch> User-Agent: Mutt/1.9.2 (2017-12-15) 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 02:08:23PM +0100, Andrew Lunn wrote: > > > If they don't have PHYs, how are the connected to the outside world? > > > > 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? This would definitively work for SFP connectors with a PHY, but would that work when using direct attached cable? As in the second case phylink wouldn't be able to ask the SFP PHY for the link state. Antoine -- Antoine T?nart, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com