Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp746643ybz; Sat, 25 Apr 2020 03:26:42 -0700 (PDT) X-Google-Smtp-Source: APiQypIpHu3hjxf+hP4E9TTBz6HhaFm3DZUHQ0kh/mp+jD0tu0WfZWCXGzVL2MUfvNiMGoyzCq6o X-Received: by 2002:a17:906:af94:: with SMTP id mj20mr10765652ejb.347.1587810402284; Sat, 25 Apr 2020 03:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587810402; cv=none; d=google.com; s=arc-20160816; b=bspzIvG8LAwHWkAoM0VKs3On22j2H12hlCkQmxD/vZ/zyYSiwTr6Ip9CJUw6BDQwaM i9E7xfXb9JMvcDO/lpUM38CeJK+CMA1iYABcBaDxHNQdtydTaGWUoBURJSOYvsP3UZwv h7hbroC81WmJZx9MJeydvRG3JW3YTHTCrT2WXf+bzvXIO7l7cu2cdTb271D7oxOhxs29 HbOYarab85ltZUOCEJwM2Cy9axPJGNwhd4Rh2DrqBOQAMjiazr3XDbVrwXQkPSjXVKPi ZpYZoR8fTB5TixhBh0NBPvOazBJcgv5BkYcq9AyFWEQrICMMhWlIWTsjKCMhEDZpD2U7 a58w== 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; bh=s3Na2WaeJN8ZP3a01wZ11T3dQK6+5+kSc6FYnwxfMlw=; b=CXIIOQ8m3UvknR+hzmJ60qhBlbuL+QwgMMwrLvq6SJPlAQLzTz8OhAWXiYR/oNr28D LwedHzW70Bq8uT8T/6crDtIye56a2FVkiKl09BhxCwF1pWM4bQ4kgiWIB+xUvFoPctUH 0lLUb4XJdS7AA0Eacz7VkEk4KFiRvWCtZtO3tdW5sQAEu8AGzTJJhZUJyNW/xSdL6pR2 /Xh3iXoNRrAgk9U99b5RcX7uoGqeIUafVxP+8mZpmHT5F91Sr28q82eIZiw96dY7QGOc OAb/7/MRNsPT8ov5L7XubAwFUoPBFVqB2ALwwkxXJgiHgipbMbxYFgsz/q40HSChSmzp IF3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=b00YjM0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id x5si4677894ede.603.2020.04.25.03.26.17; Sat, 25 Apr 2020 03:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=b00YjM0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726119AbgDYKWr (ORCPT + 99 others); Sat, 25 Apr 2020 06:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726060AbgDYKWr (ORCPT ); Sat, 25 Apr 2020 06:22:47 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52192C09B04A; Sat, 25 Apr 2020 03:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s3Na2WaeJN8ZP3a01wZ11T3dQK6+5+kSc6FYnwxfMlw=; b=b00YjM0PN+/RhAE0WZkI/1LmA ZyzyNpedSXiqGaE3h7ko+59RAAstbBqwojqfBIXPQYxAYGXUEeHXO+2OEXrpUZifK+WS6F1er7msd +HV2lklHHOlIu8/oQb+RRMCY/yGTmjqeRI1wfbBTXxpxptNw1RNUxgDoDWD5mbEggAhIEH6GUpAUR K3/U83+XTS0sIcKwKlnb9W9XX8ELZQwOB9n0LckgPCuzZvmtOAkNRxGgxrLMu4u3bIP46Q23SW0s4 xooxJCs66TZ40PlWhWchzrgkJSJZlQ77uD1XnxKVkvpdtSfaYaoPkd8R4DK/eRG0wVPnkGoZfDUdk jFe/lK5uQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:43510) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSHx8-00021Y-Ko; Sat, 25 Apr 2020 11:22:30 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jSHx0-0004Wk-SS; Sat, 25 Apr 2020 11:22:22 +0100 Date: Sat, 25 Apr 2020 11:22:22 +0100 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: Florinel Iordache , davem@davemloft.net, netdev@vger.kernel.org, f.fainelli@gmail.com, hkallweit1@gmail.com, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, kuba@kernel.org, corbet@lwn.net, shawnguo@kernel.org, leoyang.li@nxp.com, madalin.bucur@oss.nxp.com, ioana.ciornei@nxp.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 3/9] net: phy: add kr phy connection type Message-ID: <20200425102222.GV25745@shell.armlinux.org.uk> References: <1587732391-3374-1-git-send-email-florinel.iordache@nxp.com> <1587732391-3374-4-git-send-email-florinel.iordache@nxp.com> <20200424134236.GB1087366@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424134236.GB1087366@lunn.ch> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 03:42:36PM +0200, Andrew Lunn wrote: > On Fri, Apr 24, 2020 at 03:46:25PM +0300, Florinel Iordache wrote: > > Add support for backplane kr phy connection types currently available > > (10gbase-kr, 40gbase-kr4) and the required phylink updates (cover all > > the cases for KR modes which are clause 45 compatible to correctly assign > > phy_interface and phylink#supported) > > > > Signed-off-by: Florinel Iordache > > --- > > drivers/net/phy/phylink.c | 15 ++++++++++++--- > > include/linux/phy.h | 6 +++++- > > 2 files changed, 17 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c > > index 34ca12a..9a31f68 100644 > > --- a/drivers/net/phy/phylink.c > > +++ b/drivers/net/phy/phylink.c > > @@ -4,6 +4,7 @@ > > * technologies such as SFP cages where the PHY is hot-pluggable. > > * > > * Copyright (C) 2015 Russell King > > + * Copyright 2020 NXP > > */ > > #include > > #include > > @@ -304,7 +305,6 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) > > break; > > > > case PHY_INTERFACE_MODE_USXGMII: > > - case PHY_INTERFACE_MODE_10GKR: > > case PHY_INTERFACE_MODE_10GBASER: > > phylink_set(pl->supported, 10baseT_Half); > > phylink_set(pl->supported, 10baseT_Full); > > Hi Florinel > > What about the issues pointed out in: > > https://www.spinics.net/lists/netdev/msg641046.html Having reviewed the situation, it seems that I added a translation to mvpp2 driver for this, translating PHY_INTERFACE_MODE_10GKR to PHY_INTERFACE_MODE_10GBASER, so anything using "10gbase-kr" in arch/arm64/boot/dts/marvell/ is not a worry - however, those DT files still need to be updated but my request to bootlin for help with that has gone unanswered to date. So, I'm tempted to change them wholesale, since that's what we're doing in the mvpp2 driver anyway. > > @@ -107,8 +108,9 @@ > > /* 10GBASE-R, XFI, SFI - single lane 10G Serdes */ > > PHY_INTERFACE_MODE_10GBASER, > > PHY_INTERFACE_MODE_USXGMII, > > - /* 10GBASE-KR - with Clause 73 AN */ > > + /* Backplane KR */ > > PHY_INTERFACE_MODE_10GKR, > > + PHY_INTERFACE_MODE_40GKR4, > > PHY_INTERFACE_MODE_MAX, > > } phy_interface_t; I would like to see these (re-)named to PHY_INTERFACE_MODE_*GBASE* as we have the same for previous definitions such as 1000BASEX and 2500BASEX. Also, please update Documentation/networking/phy.rst with a description of the new 40GBASE-KR4 mode. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up