Received: by 10.213.65.68 with SMTP id h4csp1518615imn; Mon, 19 Mar 2018 06:27:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELuu9wKn2W66XeOvUR4YpePNhWQMnb1SkiRCeucI1F8FwpB5wqk6Whb5COEaxB2FTScILiej X-Received: by 10.98.19.10 with SMTP id b10mr10204662pfj.236.1521466076378; Mon, 19 Mar 2018 06:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521466076; cv=none; d=google.com; s=arc-20160816; b=iAsLzK0YQFOVdW+N6DYuWx2eU+hwxeAGUZoIJS5ro6TDbOJxMoEBjQf5rM0Yi5BL+L Y8cjMdAczuUFjtYrMvS7Q3gqkVpbFS25kA0rxhF62UzyXEcIPr1rCeCVqzQ8hhSZRuPS de/l51mgZnd3gty+l3ecV+uGBu50qCE9lFP9POUGTUoYSCxm0KEJUqY/aQ7audEkFGzl eeGmrn5hvYIDlhCBn1jyq3GDrMCcGuouovbnLJmSAiy5FD0AZhrwsT2PRbUpnQvkhNzS I6Uxzg2Jmr/hnHsXUM5fhPxJ035E63fphwLba06CuhDvxw9j/JuGgHHGFUCIAx8nJxLx 7Z/g== 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=XXa5mLmf5dkMjeRT7NsG5PJXDMVNppZrwi7ukZ5AV08=; b=uzWDn2GpAP2Kc4VTbD2y2FduuAPS4k0uPStmHSRfmY+Kk39wGTHSXnvyqgtHIyEVI8 uo7vqfxAYCmvBFMK++TPGQxIqj/V+ToDaDqMHdgW363nIEcI41GB5oeknaL5Absal+U4 D0ytZQJ1tEuJqfvm1MNLaiLPFKOreQU+lXRvIiNT46zZfor/aLGbdHJesgcPhidFsK+5 XWqKqnevplo0hbKyl8+r5JuzFqrBGkkymLmarw9HOiFJ2PJZ71vJjhneVu/FUmlLXQOz WEz3+69Qpt3QO/02cZ1c/UCoOmOM5W7M+ZqnqHWUT+xAj23vnazzuF4UJDUco4Y/FE+a 7KtA== 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 k190si13839pgk.196.2018.03.19.06.27.41; Mon, 19 Mar 2018 06:27:56 -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 S1755558AbeCSN0i (ORCPT + 99 others); Mon, 19 Mar 2018 09:26:38 -0400 Received: from mail.bootlin.com ([62.4.15.54]:59419 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753151AbeCSN0f (ORCPT ); Mon, 19 Mar 2018 09:26:35 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6EABB20713; Mon, 19 Mar 2018 14:26:33 +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 227E92036E; Mon, 19 Mar 2018 14:26:33 +0100 (CET) Date: Mon, 19 Mar 2018 14:26:33 +0100 From: Antoine Tenart To: Russell King - ARM Linux Cc: Antoine Tenart , Andrew Lunn , 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, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next 02/10] net: phy: phylink: allow 10GKR interface to use in-band negotiation Message-ID: <20180319132633.GL4519@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> <20180319131009.GJ4519@kwain> <20180319131804.GD2743@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180319131804.GD2743@n2100.armlinux.org.uk> 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 Hi Russell, On Mon, Mar 19, 2018 at 01:18:05PM +0000, Russell King - ARM Linux wrote: > On Mon, Mar 19, 2018 at 02:10:09PM +0100, Antoine Tenart wrote: > > > > On 7k/8k you have the following scheme for 10G only interfaces: > > > > MAC -- Comphy -- PHY -- SFP cage -- ... > > > > Or > > > > MAC -- Comphy -- SFP cage -- ... > > > > The comphy provides serdes lanes, and can be configured in various > > modes (SGMII, 2500SGMII, 10GKR...). > > Right - the correct mode is dependent on the SFP module plugged into > the cage. Trying to describe this by ignoring the SFP cage isn't > going to work out well for end-user functionality, though is fine if > you're just hacking a configuration to test (which would not be > suitable for mainline kernels!) > > As I've recently replied to Yan, this is a configuration I haven't > tested yet, and it's entirely possible that phylink may need some > tweaks for it. > > What you have is a very similar setup to what is on Clearfog with > its SFP cage, where the SFP cage is connected directly to the > Armada 388. That only has to deal with 2500base-X / 1000base-X / > SGMII and not 10G. > > What I want is to avoid hacks as much as possible here - if there is > a short-coming with SFP/phylink here, we need to address that > properly. OK. So the proper solution would be to properly describe the SFP cages in the device tree (and check if phylink deals with it nicely). I'll update the patches in this way. Thanks for the feedback, Antoine -- Antoine T?nart, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com