From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Chan" Subject: Re: [PATCH net-next 2/6] bnx2: Check netif_running() in all ethtool operations. Date: Thu, 09 Oct 2008 13:59:00 -0700 Message-ID: <1223585940.23468.7.camel@HP1> References: <1223572568-1298-1-git-send-email-mchan@broadcom.com> <1223572568-1298-2-git-send-email-mchan@broadcom.com> <20081009.122210.120302203.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" , "Benjamin Li" , "Matthew Carlson" To: "David Miller" Return-path: Received: from mms1.broadcom.com ([216.31.210.17]:4974 "EHLO mms1.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752788AbYJIVA6 (ORCPT ); Thu, 9 Oct 2008 17:00:58 -0400 In-Reply-To: <20081009.122210.120302203.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2008-10-09 at 12:22 -0700, David Miller wrote: > From: "Michael Chan" > Date: Thu, 9 Oct 2008 10:16:04 -0700 > > > We need to check netif_running() state in most ethtool operations > > and properly handle the !netif_running() state where the chip is > > in an uninitailzed state or low power state that may not accept > > any MMIO. > > > > Signed-off-by: Michael Chan > > Signed-off-by: Benjamin Li > > Signed-off-by: Matt Carlson > > Applied, but I wonder if this will trip people up who invoke > ethtool to set a specific link setting before bringing the > device up? > ethtool -s is not affected by the patch and will continue to work whether the device is up or down. The patch affects operations such as reading/writing NVRAM, restart autoneg, etc, that require the device to be up. Thanks.