From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbdK1NP4 (ORCPT ); Tue, 28 Nov 2017 08:15:56 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:37010 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752828AbdK1NPx (ORCPT ); Tue, 28 Nov 2017 08:15:53 -0500 Date: Tue, 28 Nov 2017 14:15:51 +0100 From: Andrew Lunn To: Yangbo Lu Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Manoil , Shaohui Xie Subject: Re: [PATCH] net: gianfar: add ethtool eee support Message-ID: <20171128131551.GA20797@lunn.ch> References: <20171128062901.22210-1-yangbo.lu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171128062901.22210-1-yangbo.lu@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 02:29:01PM +0800, Yangbo Lu wrote: > From: Shaohui Xie > > Gianfar does not support EEE, but it can connect to a PHY which supports > EEE and the PHY advertises EEE by default, and its link partner also > advertises EEE, so the PHY enters low power mode when traffic rate is low, > which causes packet loss if an application's traffic rate is low. This > patch provides .get_eee and .set_eee so that to disable the EEE > advertisement via ethtool if needed, other EEE features are not supported. Hi Yangbo This patch is good, as far as it goes. However, as you said, some PHYs advertise EEE by default. So i think it would be good to add a call to phy_ethtool_set_eee() to disable advertisement, e.g. in init_phy(). Thanks Andrew