Received: by 10.213.65.68 with SMTP id h4csp477300imn; Fri, 16 Mar 2018 08:58:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELuk5YdP0+IRHZ3lblHlxWHVHww1bwwg9rbRBmgLp/x5uQnm0PSQXPYpiEYFghfLDsEo7Bb1 X-Received: by 10.98.194.87 with SMTP id l84mr2024118pfg.6.1521215882230; Fri, 16 Mar 2018 08:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215882; cv=none; d=google.com; s=arc-20160816; b=v201MLJy83X+08kiGyMkRmexTHv9JF+3gvUI7nDpSYwYGGFw+nHBTo31lRLwgtUMT3 3vJbCjLVNfvsLW9B2UVH/zS/Z6Pvs63cO8Z+g7CfBnvTAMZ16nq6iSei6CUXHXrLnqid QH7UP2Zk6KtQXKnTC40ker/HYbDlNlw3syN4L6+u3Ox9lEushtssnGPC+4xjzSAkQsJ3 aLIzg9AbF1d+ymBHlrLyCvq1id7tNIrtUjRcEZjNNeeawTIQSzKGAH4xJT+GANot9Hr+ e8ZyxEqYK5Ns5X4kMVr8ZTU5V66qBH4plOVi4//pB5j257Jec/KU2stXdBN+sD2hAOeZ FniA== 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=pA+1mIcVMDNsBLAuFpGAQWJJlZ9PSxPj/htv+EGURkQ=; b=AJmjiVykRHBm+z7MScPXRtgsKMy6aWOJVnG6cuq/+z/VD2CDJhK1jw+IN1WyDzr5Zt XTB7I70Ph5j6qge8STaBUfBe5DgMRjvWa/l9ogIG7iX91vZ189SXyFxNCgRXVzuj1CSY P4sO6QQhL71gRgF2u9oDwvI0aPZIJZXv/yMMvZXGTtpG9a0TdkQsFIzA2aHaE5N/Mfpx CioJttJUdvGN7xC9SfmFUxdbQ4PIcOBba4FYHaC6adHsCUijCmxkfNdHqdSwosVevzAg U+yRc2yPDwv0ZdRVD3Db9w3g/CdlgjgB7cSVqSzZq4MYKpzAaEjKuNZpaYO8NTGHbX/f s97g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=es9szD9G; 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 c14si5080562pgu.341.2018.03.16.08.57.48; Fri, 16 Mar 2018 08:58: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; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=es9szD9G; 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 S965208AbeCPPxs (ORCPT + 99 others); Fri, 16 Mar 2018 11:53:48 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:51374 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754150AbeCPPxo (ORCPT ); Fri, 16 Mar 2018 11:53:44 -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=pA+1mIcVMDNsBLAuFpGAQWJJlZ9PSxPj/htv+EGURkQ=; b=es9szD9Go8X4WD/GGdI0FSOBu1nK9hkIo3YpT9xYn8zFL5/94JvRgjz24APOCrYQZPbt2zh6wUlXkfjqioH0FX0RWm/BnuEVBTgtYWMlDQxMMqAp84l2Grqkev1RB3SyA0tMqAjcUKxrjiBmK4JH7WxvsWE7nZlkPEVCge9P+nI=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:60307) by pandora.armlinux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1ewrfU-0000AH-4G; Fri, 16 Mar 2018 15:53:20 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.76) (envelope-from ) id 1ewrfK-0006tQ-7j; Fri, 16 Mar 2018 15:53:10 +0000 Date: Fri, 16 Mar 2018 15:53:07 +0000 From: Russell King - ARM Linux To: Antoine Tenart Cc: davem@davemloft.net, kishon@ti.com, gregory.clement@bootlin.com, andrew@lunn.ch, 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: <20180316155307.GQ9418@n2100.armlinux.org.uk> References: <20180316103351.16616-1-antoine.tenart@bootlin.com> <20180316103351.16616-3-antoine.tenart@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316103351.16616-3-antoine.tenart@bootlin.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 Fri, Mar 16, 2018 at 11:33:43AM +0100, Antoine Tenart wrote: > The PHY mode 10GKR can use in-band negotiation. This patches allows this > mode to be used with MLO_AN_INBAND in phylink. > > Signed-off-by: Antoine Tenart > --- > drivers/net/phy/phylink.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c > index 51a011a349fe..7224b005f0dd 100644 > --- a/drivers/net/phy/phylink.c > +++ b/drivers/net/phy/phylink.c > @@ -768,7 +768,8 @@ int phylink_of_phy_connect(struct phylink *pl, struct device_node *dn, > /* Fixed links and 802.3z are handled without needing a PHY */ > if (pl->link_an_mode == MLO_AN_FIXED || > (pl->link_an_mode == MLO_AN_INBAND && > - phy_interface_mode_is_8023z(pl->link_interface))) > + (phy_interface_mode_is_8023z(pl->link_interface) || > + pl->link_interface == PHY_INTERFACE_MODE_10GKR))) There is no inband negotiation like there is with 802.3z or SGMII, so this makes no sense. -- 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