Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2094411imm; Thu, 23 Aug 2018 14:06:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbtV3+IJVZS8A0gQKqYjXbciBrPvQCBXA3BgyWZkHCkS9uYlxJ1by3VHPdee+RzwecY3zFW X-Received: by 2002:a62:5d89:: with SMTP id n9-v6mr4963571pfj.102.1535058415156; Thu, 23 Aug 2018 14:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535058415; cv=none; d=google.com; s=arc-20160816; b=h6sljxgZQ3NLexY3fZEg7lP/U5aBiYaSurKgLsKmRPdDUkdor8dmitHKvx8elqDAgT M28V/IlQiEDRmknhDaSodHXTKoM1UQya7qF/ebXi95PsBTycYgEB3yRsB4qOv9BTtrH/ fjlNws8DYCJJBOukA49DcO2uJyWgH6kZpXATOGhlWS1fnkIkU47xdqyM/WNPxBKleCoj nRjqB+yOGfck/pDXuV6CfqbAc8SupqYqW/LApW2RARNk2Boqgc88W0ATV5CeN9arGGw7 QhAf8rDjO3qc1A1EzUDXLqw691hfyHKmvQmWYR0o1rRj1YFf632ZQgqR4R9JzD2nADRU HDLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=oc/6W8fwyMLoiNErbF1RaZRaa4IvdsQHURzkvgLmWKY=; b=b2r0VhBSfkXnBiu/uuojNo3qsiKJEupRWwA4Yubi+VwIOzfycdDJveYSdESEZ0/Oy4 3lWsBJURws5d9YPRX3UrsJGtImXah4WpxRqgTllRVZM6Nl/j61V8GGkgdHO8+SlQaOM8 KkuLT/4n/7Q4KTK6Hex1t3zUNtX7OwbghDomsiZg7obJEs4AN3Y7VZVIrchSe2WeInr0 2lnZGnTmeI8wpn6h4+vutbhtx6kh0BNzDPE77d8BuuIC1sIXQeFuFkKzTJYX5KB1ZvB6 3GeB6HfUeXaRSpzlkUPWHWRCX6ZHUU3JgEkbtB/p8IYP5enuLtreVD9JmIcJkJn0JLGF Px3A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31-v6si5059409pla.479.2018.08.23.14.06.39; Thu, 23 Aug 2018 14:06:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727627AbeHXAhD convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Aug 2018 20:37:03 -0400 Received: from mga07.intel.com ([134.134.136.100]:58669 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727180AbeHXAhC (ORCPT ); Thu, 23 Aug 2018 20:37:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2018 14:05:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,279,1531810800"; d="scan'208";a="257532039" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga006.fm.intel.com with ESMTP; 23 Aug 2018 14:05:33 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.46]) by ORSMSX103.amr.corp.intel.com ([169.254.5.166]) with mapi id 14.03.0319.002; Thu, 23 Aug 2018 14:05:33 -0700 From: "Brown, Aaron F" To: Jia-Ju Bai , "Kirsher, Jeffrey T" CC: "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [Intel-wired-lan] [PATCH] net: intel: igb: Replace mdelay() with msleep() in igb_integrated_phy_loopback() Thread-Topic: [Intel-wired-lan] [PATCH] net: intel: igb: Replace mdelay() with msleep() in igb_integrated_phy_loopback() Thread-Index: AQHUJYDvfM5CImqE2UeML7hSqVxIEaTN/uqg Date: Thu, 23 Aug 2018 21:05:33 +0000 Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B96550235@ORSMSX101.amr.corp.intel.com> References: <20180727080738.3301-1-baijiaju1990@gmail.com> In-Reply-To: <20180727080738.3301-1-baijiaju1990@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Jia-Ju Bai > Sent: Friday, July 27, 2018 1:08 AM > To: Kirsher, Jeffrey T > Cc: netdev@vger.kernel.org; Jia-Ju Bai ; intel- > wired-lan@lists.osuosl.org; linux-kernel@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH] net: intel: igb: Replace mdelay() with > msleep() in igb_integrated_phy_loopback() > > igb_integrated_phy_loopback() is never called in atomic context. > It calls mdelay() to busily wait, which is not necessary. > mdelay() can be replaced with msleep(). > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai > --- > drivers/net/ethernet/intel/igb/igb_ethtool.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Tested-by: Aaron Brown