Received: by 10.192.165.148 with SMTP id m20csp232223imm; Tue, 1 May 2018 22:13:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFWHaWVmkFiJ4QjwqUVGsu261mHi3MFf9nEndsjkBnFdyTQs60DT/6AHJrYXARNPn9M4z2 X-Received: by 10.98.202.74 with SMTP id n71mr18057137pfg.149.1525238004029; Tue, 01 May 2018 22:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525238003; cv=none; d=google.com; s=arc-20160816; b=V2PDaQIy44qWF505XVJZifsTbutk1yBAZgKHR+gzjNsx+L88iAvuHVGqJBDRDqDiKQ Qfu2o/DYRPgMFHZ2E5NVBEcaZCbngfZvGyAWaOFqZkMe4o7fzJKYRfEd325vA/+vz3kz dDShUOO+w05ATuSUf6q4B2Iup9YV+BekgApSI0NspApLDXl46I1f//fJFM8N8lnsR8P5 D53uJhLvCz1LsYUgSvCFRmSnR03nLwFGjSbqC8HU009KrA5He03LwuWKGl5+fPxy56gs kve/q7B9JAA9oAYZEuQChy0QIRkK41T23r8flyPwkeZb1IrBF4o4MPCx+Lgw9CXErRS9 T/dw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=42by2GMiJITJ6qRcmiGthijci5zI9zlF/SqkFNguLII=; b=vzqrWG+yzb8V50e5p4LlG8TRG5YjqfocZKX1xIe6SflKGmCjvhf5tHasrlSglI1QPU YuZ6pGWF/Zw/tsnOVYlmkt/3pxXL3ipWh4wmbIVHYYm97Jgy3wibC1ifJ91rEo6YxsBl 8ESMmG5lc2EdBjJf5dtstM8VoeGFxA3fLVjb47hfsrdNyXr5HPwr+VMMp0fJIQD4iIMO gAJFBxH8dooeChKfW6RTcYwbZSUHNeW2q4bVyYLiV0g9Edol+BT7JVjdsfU4ISGtlAzR wMNMw/qloLHNrFQNX7/3kBfmbXd3MtCTqB+4GkNUoCNLBOktd+giXr9CRJQ5Qt9/T8RG E7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=U5NxCdS3; 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 q70si9159073pfa.272.2018.05.01.22.13.07; Tue, 01 May 2018 22:13:23 -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=U5NxCdS3; 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 S1751004AbeEBFM5 (ORCPT + 99 others); Wed, 2 May 2018 01:12:57 -0400 Received: from mail-ot0-f178.google.com ([74.125.82.178]:43090 "EHLO mail-ot0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbeEBFMz (ORCPT ); Wed, 2 May 2018 01:12:55 -0400 Received: by mail-ot0-f178.google.com with SMTP id y10-v6so15164606otg.10 for ; Tue, 01 May 2018 22:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=42by2GMiJITJ6qRcmiGthijci5zI9zlF/SqkFNguLII=; b=U5NxCdS3s1Vp5Z6HybXBropusMy4IzCf+1IMQtpyQ8GQQP5nJiptgtFVPKxX8h2/1a idqiiou2xvTuMoolbzrZ6Q4TuHVcSyDVllnDZj/0sNlSfoKd1ihxMZQBH/pjIz2TCKOc 4urN110n6aQDZQZ5T3wMYlVJebtZeuPxK5hk8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=42by2GMiJITJ6qRcmiGthijci5zI9zlF/SqkFNguLII=; b=SzQ7YPaGnGc8V9OkQsOJmNvuA9VPrtC6poqFYzYtER1PcoGItLi3YOD92AW32TEM+E Cql1/VjUzh+inLC6bRkzAKudEdWJAhjg4mK/h0hJI91D4grRBPpdVpzFDZSpGkziPY6B 3fz6AI8Wh4EQbKUtpEN1JNvSiVWk55IMWIZjm8O/WtHlCErtzIemavbYR31vOaSUsAMt sKjLeBVG4ROOUyc9WU+1YPERX7woOK5MVhl4qqA0NiBR5wKBnT4oj47VMegA6KNhgjdA HwLyxYNKLi/dNt8qXZkNqPhgwQKY3cLu8FG0ktQ0ssgB4eyDEYvc4O/+UAEGBPD8SdLc OYmw== X-Gm-Message-State: ALQs6tAdp8/EQExHUdMJ0h1RBxP7guuLjP1Rik3lf4U9pdf3nJI9LU9K h+e5uLKMdwAVafsQl6y83TktYSEsVZNN1tyQkoDEDA== X-Received: by 2002:a9d:2c65:: with SMTP id f92-v6mr12324904otb.74.1525237974604; Tue, 01 May 2018 22:12:54 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1b4c:0:0:0:0:0 with HTTP; Tue, 1 May 2018 22:12:54 -0700 (PDT) In-Reply-To: <20180502004234.230662-1-zumeng.chen@gmail.com> References: <20180502004234.230662-1-zumeng.chen@gmail.com> From: Michael Chan Date: Tue, 1 May 2018 22:12:54 -0700 Message-ID: Subject: Re: [v2 PATCH 1/1] tg3: fix meaningless hw_stats reading after tg3_halt memset 0 hw_stats To: Zumeng Chen Cc: Netdev , open list , Siva Reddy Kallam , "prashant.sreedharan@broadcom.com" , David Miller , Zumeng Chen 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 Tue, May 1, 2018 at 5:42 PM, Zumeng Chen wrote: > diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h > index 3b5e98e..c61d83c 100644 > --- a/drivers/net/ethernet/broadcom/tg3.h > +++ b/drivers/net/ethernet/broadcom/tg3.h > @@ -3102,6 +3102,7 @@ enum TG3_FLAGS { > TG3_FLAG_ROBOSWITCH, > TG3_FLAG_ONE_DMA_AT_ONCE, > TG3_FLAG_RGMII_MODE, > + TG3_FLAG_HALT, I think you should be able to use the existing INIT_COMPLETE flag and not have to add a new flag. > > /* Add new flags before this comment and TG3_FLAG_NUMBER_OF_FLAGS */ > TG3_FLAG_NUMBER_OF_FLAGS, /* Last entry in enum TG3_FLAGS */ > -- > 2.9.3 >