Received: by 10.223.148.5 with SMTP id 5csp7584336wrq; Thu, 18 Jan 2018 07:08:53 -0800 (PST) X-Google-Smtp-Source: ACJfBosiekm72y8/aFVxbO3bW9NzRvsfEyA0iRylsXiZax87W67FE9PSxwrXjWU1FYubF8ZMvRHG X-Received: by 10.99.159.9 with SMTP id g9mr36037539pge.174.1516288133198; Thu, 18 Jan 2018 07:08:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516288133; cv=none; d=google.com; s=arc-20160816; b=H1bJX8H5HMGxQZBrmJsWO6kwbZxuReSy3l1absDIThdKO55+QMuPNrCxdAxbksT3iF bjIMzbmIeNC1cKz2doNahe6jyRtTdIItWIE8YDgSpofeVS5b+j1GiWswJvsn0b8+dboh T5AFjgnipnkAcWMk9KsKx9d87IvttHaWILg1NCBYJ/fE+s7aAkgcHyMvay+W/dPtY83S wtIW16me12DFtj3GStvvhlRFUJ7+ZG8urruyhkEQaa3G0yE0uDoTxTcXnA7cS7PgY+c9 vLMmz2Jik8W8y6NgSr2xUQSq1owS2dyCuevJ3wxx+lYotKKFageuCwXHOCwRl/IL8Hza pJmw== 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=rJ/x5gDX49wOW0AYcwaVjXu4HwOgPaefV+J0jrm3dN8=; b=Q7p7ApbwP8u/lhj9pR7vY+FjB0EeeXJhBDmCE2bmkR6uwuC6RKM55iLeaP9xXeNv3L pcdUuZQTKCgVy7FaMkeqBuF6vy8fR6sWZGX+lX4e2xW4J7/rzY1HE5rEVKSzcaVxMyWk neCrBwNBJ+wHrqHmYn9Mleq89sCdH+tQ2sDLOk+EY4Wg9u34u+HXIKfpjFxtnB1YgJKa Q8pS0KRFaql3shoolPmAzJbNzKWNz/0a5O8tEFN1EU0D0hZgT8YiV+vhZ/YRTJzSsuGI xDy1d73bLt4qkKwORxi6ntiHZ0dScj8NtQGKXXWTvo3lepAz/f8MZjUa5inU88lnEkLo sm4g== 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 23si6103604pge.234.2018.01.18.07.08.38; Thu, 18 Jan 2018 07:08:53 -0800 (PST) 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 S1756196AbeARPGz (ORCPT + 99 others); Thu, 18 Jan 2018 10:06:55 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:38419 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755160AbeARPGv (ORCPT ); Thu, 18 Jan 2018 10:06:51 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id D682820913; Thu, 18 Jan 2018 16:06:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.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.free-electrons.com (Postfix) with ESMTPSA id A9C7F208E2; Thu, 18 Jan 2018 16:06:48 +0100 (CET) Date: Thu, 18 Jan 2018 16:06:44 +0100 From: Antoine Tenart To: Russell King - ARM Linux Cc: Antoine Tenart , davem@davemloft.net, kishon@ti.com, andrew@lunn.ch, gregory.clement@free-electrons.com, mw@semihalf.com, stefanc@marvell.com, ymarkman@marvell.com, thomas.petazzoni@free-electrons.com, miquel.raynal@free-electrons.com, nadavh@marvell.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 0/4] net: mvpp2: 1000BaseX and 2500BaseX support Message-ID: <20180118150644.GH2690@kwain> References: <20180112075130.30890-1-antoine.tenart@free-electrons.com> <20180116151245.GJ17719@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: <20180116151245.GJ17719@n2100.armlinux.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, On Tue, Jan 16, 2018 at 03:12:45PM +0000, Russell King - ARM Linux wrote: > > As I've already said, we need to make sure things are done in a similar > way for all netdev DT drivers that are hoping to switch to phylink. > The mvneta patches are now in net-next for this. > > What I can see is that there's a stark difference between mvpp2 and > mvneta and their handling of the "link irq" aka inband autonegotiation > status. > > mvneta requires 'managed = "in-band-status";' to use the results of > the gmac negotiation otherwise inband AN is disabled. As phylink was > developed against mvneta, phylink requires that for Base-X modes. > > So, in order to be compatible with mvneta and to do what phylink expects, > specifying 'managed = "in-band-status";' is a requirement for Base-X > modes, and having that in place _now_ will make the transition to > phylink easier without creating the need to update DT when that change > happens. Yes, we should aim for similar bindings and not having all drivers doing their own way. Part of the PPv2 move to phylink will be to rework the "link irq" to match what phylink expect, and I think we all agree on this. Part of this will be to update the dt of the 7k-db and 8k-db, as they're the two boards currently using the "link irq" in mainline. I don't mind too much keeping these base-X patches out-of-tree for now, and to send them as part of the phylink series during the next cycle. I don't quite get the reason not to take them now, as they do not modify any DT-related part. Or do you fear this would allow others to send DT patches before the PPv2 move to phylink lands in? Thanks, Antoine -- Antoine T?nart, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com