Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp403926imj; Thu, 7 Feb 2019 06:11:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYhMkr4LDVe7xWKTY1LE4rOhv6WYZYEDc6GLPlE1sJE67R2WPZRjHSs7QHpp28W5iT8/o3E X-Received: by 2002:a62:3141:: with SMTP id x62mr16231264pfx.12.1549548695420; Thu, 07 Feb 2019 06:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549548695; cv=none; d=google.com; s=arc-20160816; b=G9NrXn3Vc22KpJCSsCC6hKPhnkClCEk27CLJ7gEp4uBM10HfbvNFzZXgOuZetVVFXn 0woNT8moH4ynP5hcoKYGvgMZArxHR5A+FTeFCH7NE/STTP4Z+SCpAllmK7lFrkVlMYli IzjU+Li9rbVoikRERCxIZVSL+PaqvbFgQcMo+y3Oq6MOOs0kLsgLIsiEOy3vE4snYh58 9fJTXFpTdaQha4jusQ1Yb1cVMttwyJx6iHLG4bFY19ZLrv44TtkT/gIwu0oHHrEpzM2J JIe0zB3VyU0ye1/ir8pXaAPCyq13vpIUlPBVv4lDpgZtgBXXOBNnFlu11q579YFv1jLa N0cw== 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=UW1DS7PxkZzJbujwgy3uj1+cDFSwJ+CbXVbjWYszkO8=; b=gTUHUpnVIGAbWKxgXw3mzTwFyt+ToerYzSlaWvnFBFy/qfOmfdDA3hP+OpLhbI8GBJ t6O26zOkw0zBbA3SMBvV1nQYxh82c2cuVF3ZwC2MgKFZqEZB2eQMOL/JI1/iH6tYwYrj 2wLzqt0+z/fcl0+v6SftJuLWTVrtQ2upnao3df/gSNa6SRd75yYFVd6SiQaXdarCt4Vx +nhlh1xXZ7JCMTzaDZjP6EJtTYDD8GFQRfOXwpHi7iLmSe++RoUhbj32E/xgLeT/vWht Gn5PhyB7guK9OdPD1grzb1ALdbRHviQu0Dssh2Kc89498fKZROU5bZZhaoQUwJCTCScU chiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=3KSY7zRy; 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 61si5661924plz.117.2019.02.07.06.11.19; Thu, 07 Feb 2019 06:11:35 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=3KSY7zRy; 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 S1727090AbfBGOJp (ORCPT + 99 others); Thu, 7 Feb 2019 09:09:45 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:42468 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726732AbfBGOJo (ORCPT ); Thu, 7 Feb 2019 09:09:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender: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=UW1DS7PxkZzJbujwgy3uj1+cDFSwJ+CbXVbjWYszkO8=; b=3KSY7zRy20kjGRJiO6yC30ZhAC Z4NyPAdkTuUG0aDgz1EH/PEKBigmqJZ7IELFDilxOf6WJq7vlAZ2b6HR4l2116cjiQ5Z647vSSpUk /wtKTPvZKB5iuJVvFuMklFzNIKsNgCYn3KYVd9L1pLgS/Yq7xO/WJDHcLZS9R9q4eQVk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1grkN1-0006ys-Hm; Thu, 07 Feb 2019 15:09:39 +0100 Date: Thu, 7 Feb 2019 15:09:39 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com Subject: Re: [PATCH net-next v2 04/10] net: phy: Automatically fill the generic TP, FIBRE and Backplane modes Message-ID: <20190207140939.GI32483@lunn.ch> References: <20190207094939.27369-1-maxime.chevallier@bootlin.com> <20190207094939.27369-5-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190207094939.27369-5-maxime.chevallier@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 Thu, Feb 07, 2019 at 10:49:33AM +0100, Maxime Chevallier wrote: > PHY advertised and supported linkmodes contain both specific modes such > as 1000BASET Half/Full and generic ones such as TP that represent a > class of modes. > > Since some modes such as Fibre, TP or Backplane match a wide range of > specific modes, we can automatically set these bits if one of the > specific modes it corresponds to is present in the list. > > The 'TP' bit is set whenever there's a BaseT linkmode in > phydev->supported. > > The 'FIBRE' bit is set for BaseL, BaseS and BaseE linkmodes. > > Finally, the 'Backplane' is set whenever a BaseK mode is supported. Hi Maxime Interesting idea. But what exactly are we supposed to be representing here? That PHY can do these modes, or that the port exists on the device? The marvell10g can do fibre, but do all boards have an SFP/SFF, or do some only have an RJ-45 for TP? Are there boards without TP and just SFP/SFF? Is there documentation in ethtool which gives a clue as to what is expected? Thanks Andrew