Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp963050yba; Mon, 1 Apr 2019 22:32:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvDGvTJgJtVvy7V2kTo+slxsdGNk2q8d4OAqvXA8O1j30k+Y10MEqTeMF6fJjievTMu1NL X-Received: by 2002:a65:5c4b:: with SMTP id v11mr63813330pgr.411.1554183153119; Mon, 01 Apr 2019 22:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554183153; cv=none; d=google.com; s=arc-20160816; b=FAL4OUrCofSYYP4yW/kd2Pww4rNUiCEHx651SVHyLhyzplXHjRlO8OPBbLVe57m3o9 d+sR2hFxMbFreyCBg3Lu07XkzVcfVyGl+8s3oCNdud10B0dMqTdlEBNopSqv4vHoUBNG keiZyx/4DwN6+6BnM6UIl/ZHsfEchkZ59BVpYnsjIkKt2ZuVf0I8BtSLi+cjkUQxJbn9 6RYbK/uIyKb/j8gJ4qj7s0+nWSiC1I5MgWjMEL5aO2Wse7TTGjOJCWY6q0OsHaPbcCu8 krdJYFQ3BMtQVb6m1jBDe/kaf0YNXpn+QHTxdk5u4cImsk1ZisehHT0lLGju7LIjhmIE /e8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XOGIs9WNerTGX7LDKLjBk1DE37QWrZaAIzrr8nImeqI=; b=SKlyi49YkLHhYshNQlY4whYTflzAz5l1GNYNQ6pbPiqd9w8L+jTzDvvHrLDb6thH6d YVpmehsxyT4Jo/gBtXCTs22/GeZUOWtlKevcTDJYz12gZs/oqFHT8kQBusouoh+cCGeX TgWY7bnPOMM4kIdMyxn6fE/Bupkv/ka3fQdmik9TXSEJ29WAFcl5uzv59CHiqWF1IQ5v GwNMu/61DSORETnaOzQl6K/EnPbPbBWb1DFbm50Un6YFQMH9NeJwonzwlWT+UliLogrb W9wmxpOmfLDMq7E3/BKlhnpH0BUDmkRIfVWdLhkmRL/x4lJpsWts5lJbtJ6ZqKev4HpE J6hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=fwtcZix7; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r198si11124029pgr.153.2019.04.01.22.32.16; Mon, 01 Apr 2019 22:32:33 -0700 (PDT) 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=pass header.i=@broadcom.com header.s=google header.b=fwtcZix7; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729022AbfDBFWO (ORCPT + 99 others); Tue, 2 Apr 2019 01:22:14 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:42894 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbfDBFWN (ORCPT ); Tue, 2 Apr 2019 01:22:13 -0400 Received: by mail-yw1-f68.google.com with SMTP id e76so4143292ywa.9 for ; Mon, 01 Apr 2019 22:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XOGIs9WNerTGX7LDKLjBk1DE37QWrZaAIzrr8nImeqI=; b=fwtcZix7hnHZLir+w1X9DesyTlez9ZBELiZ7FdJipU28UqjyyjsVd5E7Hfp23XoZ66 Hh7zAQB69HkB8SfIcNeCLm+EIQ1dDVkjmXw0e3OsL9Pgtb4oanh31jNR4LPVkNwVpkCv pX6vRVnN+/XvVjLRXAzf+4D0pRA+UAEKHAy0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XOGIs9WNerTGX7LDKLjBk1DE37QWrZaAIzrr8nImeqI=; b=eGNoHpyXtZJtE1ieP7+pNLWUu67ydwUXTRrcjr0NwTBzO/f0NU+prD+hAqeNzOs2MN CWRSehcrsWYOpIcqHq/m6sfhnOWicsaSdZiqcWqVrpe1QtzSCNwfMrviBTwD0jeHRxyM Wt4xu3+08gEPYzSZyL4yYdG2OO4/vV/wbmpL9WuAvfPqBOjUH8THAYhIQhSsN9qDxppq 0rRHG+AjV6SESq2dsOG7GY9QR6rHxaoodQ/riNmJFEuJBTWivpHoA3Mes3Dr2NhJcXcV eg7vLJTauzq32D+TqKi8z45WchVfPoIYinqg+QSMDsKcEnqLqSNHKxPnLV+cinfz+Fb8 lz8A== X-Gm-Message-State: APjAAAU12utO59VL6Aa8GHggWbMAsxwIRo4UV7OTJYXMO1dH5pJA1FRc zvb18h17b2CZ0hCjwFp9YAOiLWtE/7u0tKvCv8hroA== X-Received: by 2002:a81:1e51:: with SMTP id e78mr57867540ywe.302.1554182533047; Mon, 01 Apr 2019 22:22:13 -0700 (PDT) MIME-Version: 1.0 References: <20190402050756.20507-1-jmaxwell37@gmail.com> In-Reply-To: <20190402050756.20507-1-jmaxwell37@gmail.com> From: Michael Chan Date: Mon, 1 Apr 2019 22:22:01 -0700 Message-ID: Subject: Re: [net-next] tg3: allow ethtool -p to work for NICs in down state To: Jon Maxwell Cc: David Miller , Siva Reddy Kallam , "prashant.sreedharan@broadcom.com" , "michael.chan@broadcom.com" , Netdev , open list , jmaxwell@redhat.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 1, 2019 at 10:09 PM Jon Maxwell wrote: > > Make tg3 behave like other drivers and let "ethtool -p" identify the > NIC even when it's in the DOWN state. Before this patch it would get an > error as follows if the NIC was down: > > # ip link set down dev em4 > # ethtool -p em4 > Cannot identify NIC: Resource temporarily unavailable > > With this patch ethtool identify works regardless of whether the NIC is up > or down as it does for other drivers. > > Signed-off-by: Jon Maxwell Acked-by: Michael Chan We used to power down the chip in tg3_close() and that's why we cannot do ethtool -p after close. We don't do that any more so this is fine. Thanks.