From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbdC1MKk (ORCPT ); Tue, 28 Mar 2017 08:10:40 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:37511 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751668AbdC1MKj (ORCPT ); Tue, 28 Mar 2017 08:10:39 -0400 Date: Tue, 28 Mar 2017 14:10:29 +0200 From: Andrew Lunn To: Thomas Scariah Cc: Florian Fainelli , nsekhar@ti.com, grygorii.strashko@ti.com, davem@davemloft.net, drivshin@allworx.com, mugunthanvnm@ti.com, ivan.khoronzhuk@linaro.org, Thomas Scariah , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ethtool : added get_phy_stats,get_strings,get_sset_count Message-ID: <20170328121029.GB3152@lunn.ch> References: <1490609570-3571-1-git-send-email-thomasscariah@gmail.com> <5153db09-092f-55b1-a8fc-aa23433c52a0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2017 at 11:56:40AM +0530, Thomas Scariah wrote: > Hello Florian/Andrew, > > > On Mon, Mar 27, 2017 at 10:14 PM, Florian Fainelli > wrote: > > > Hello, > > > > On 03/27/2017 03:12 AM, Thomas Scariah wrote: > > > From: "Scariah, Thomas" > > > > > > Added functions to support ethtool to print the phy statistics and error > > > information along with other ethtool statistics. This will help ethtool > > > information to know the error is from physical layer or MAC layer. > > > This is an enahancement for ethtool to accommodate phy statistics > > > > It sounds like your patch should actually be 3 different patches: > > > > - add helper function to the core PHY library > > - add statistics support to the Micrel PHY driver > > - hook the proper ndo operations in cpsw to allow querying the PHY > > driver's statistics > > > > Yes agreed. This can be 3 different patches . > Anyway the latest kernel already has the same change. > I have developed this patch against Kernel 4.4.14 and the similar > functionality was not available. Hi Thomas O.K, using v4.4 explains a lot. However, we only accept patches against: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git I still suggest you only do the PHY driver parts, and don't touch the MAC driver. Andrew