Received: by 10.213.65.68 with SMTP id h4csp301979imn; Fri, 16 Mar 2018 03:42:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELsH2+KJGNZQmP87y8OSqXqOsiTDVbLS1NucReXT3lILHr/TrDoldKPAqKZHK/NNfknrRV2Z X-Received: by 2002:a17:902:6a08:: with SMTP id m8-v6mr1609089plk.100.1521196940927; Fri, 16 Mar 2018 03:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521196940; cv=none; d=google.com; s=arc-20160816; b=fajKMx2wF6wrookRoHydkXVldRdbgRhiVFRvHxrnJmcpshypOSYByGUpe41bWmTXJJ NNt0eS7g1xKa6DrwYl32PwfLu/ZF+/pFLUoZm6KFox/3f6ehwSynXKqEhk/J72PwSFU6 0p5S9rbHRsoiotvAFoMBvbB2ReE6/7CDRdQ4JqkWKUlSMqFzcdNuE1sgj+wXFMaIaBPT 1QQOXFAHgJnVwzyrhiVK4LPPn6gq+PW9JQlfqQ5RjioJwWDqBjIhxCCszgmgo9oqYH9v zlsqqt163d8jw0qg4iOellG4+7K4WxorgnvvHZuMYUVLcXbwEBe9oGg4ec/VtZEIl7YX 16FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=C6NDPYqkMkUMq/5d9xH15+bc0ArLoRGHl8ezh2ug1N4=; b=YeZY7kA842COskyl9ktA5YD9nZmGIXuwmYBGzyRQ+YsduXkX1rHqUF2LuQd0DNSeGR oTLbZ1oVmFi84YBJTTt1j7Ddam8omQ/XPVrPjQIV4yXD3avcRt/dbjaWHl5kacfKcCSQ 33uwPDue/RXvWh3geg5YHS8OS5Ot8XcaevnwjxeysgvJeqwb9r8tqo2rrQWIozriSnaQ QlPf+EzfdihX/gkC/BhHCE0Pxk8g+yzzVfq8rIhrg+1BZ0b01V+GcCflBLzP5wF140+v EJkk/ZaM0fYpTzNZKLmucoh3b2xeeodCnFqQvPa7vPEOObqnIO+oU+zBMUCc+3E+g9ID uHbQ== 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 t134si4829904pgc.664.2018.03.16.03.42.07; Fri, 16 Mar 2018 03:42:20 -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 S1753752AbeCPKke (ORCPT + 99 others); Fri, 16 Mar 2018 06:40:34 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34985 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753448AbeCPKfk (ORCPT ); Fri, 16 Mar 2018 06:35:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id D0F0D2073C; Fri, 16 Mar 2018 11:35:37 +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 (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 57E2E208A9; Fri, 16 Mar 2018 11:35:01 +0100 (CET) From: Antoine Tenart To: davem@davemloft.net, kishon@ti.com, linux@armlinux.org.uk, gregory.clement@bootlin.com, andrew@lunn.ch, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com Cc: Antoine Tenart , 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: [PATCH net-next 02/10] net: phy: phylink: allow 10GKR interface to use in-band negotiation Date: Fri, 16 Mar 2018 11:33:43 +0100 Message-Id: <20180316103351.16616-3-antoine.tenart@bootlin.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180316103351.16616-1-antoine.tenart@bootlin.com> References: <20180316103351.16616-1-antoine.tenart@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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))) return 0; phy_node = of_parse_phandle(dn, "phy-handle", 0); -- 2.14.3