Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758675AbeAIPLx (ORCPT + 1 other); Tue, 9 Jan 2018 10:11:53 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:59937 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbeAIPLw (ORCPT ); Tue, 9 Jan 2018 10:11:52 -0500 Date: Tue, 9 Jan 2018 16:11:50 +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 v3 4/4] net: mvpp2: 2500baseX support Message-ID: <20180109151150.GA23676@kwain> References: <20180109085945.11916-1-antoine.tenart@free-electrons.com> <20180109085945.11916-5-antoine.tenart@free-electrons.com> <20180109144238.GH17719@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: <20180109144238.GH17719@n2100.armlinux.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Russell, On Tue, Jan 09, 2018 at 02:42:38PM +0000, Russell King - ARM Linux wrote: > On Tue, Jan 09, 2018 at 09:59:45AM +0100, Antoine Tenart wrote: > > This patch adds the 2500Base-X PHY mode support in the Marvell PPv2 > > driver. 2500Base-X is quite close to 1000Base-X and SGMII modes and uses > > nearly the same code path. > > For 2500Base-X, do you report a speed of 2500Mbps through ethtool, or > are you reporting 1000Mbps? I don't see any code in this patch that > deals with that. The mvpp2 driver uses phy_ethtool_get_link_ksettings() to report the link speed to Ethtool. So it's reporting the speed set by the PHY driver. So it'll be something to ensure when adding PHYs supporting the mode. We'll have the opportunity to see this when adding the last mcbin interface. Thanks! Antoine -- Antoine T?nart, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com