Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4347451ybi; Tue, 11 Jun 2019 05:17:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxebNt/PkMhYD/ONDBleXD0rHgZYFxAg1macniT5pHxZ3XWzNwJ2lQ+rSjOCrXj/XSKjehW X-Received: by 2002:a65:44cb:: with SMTP id g11mr19836823pgs.193.1560255427303; Tue, 11 Jun 2019 05:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560255427; cv=none; d=google.com; s=arc-20160816; b=zMZdk134gxHHuZ4srfVtyX/ADzhJLNHCgi+VG0B/tLVT2Xk3bGhR7dIr+NSBEAXq6Y mHqglLrq9lwnl/su55G1eN/EkSnZZR36R5WIVxuA67MhPb9L0hUAh20DLjIGMRwy1YPF TSXQLD02ohGI8RH2kS+ThAmitOtvL3PdBlqrd1/ssoU/P1RJg/lkwfZOGdWhgKkFvch3 qvEKqzCxQTyMTibxIEz0zMVjbBdFx+tKYJet0JKV4LISl+KbXCSp7L61OPDWDHOcAdWx 13H26vwb9zUgxqTN3gnnkAycR3GNgTIaMdPjw9GGRFavNjStE4YtDR3TVDOmbG//qvxs V/LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=Qae36JSCpcTdcklRmVE7XBNUMoQSDDFmpYRBvHliYh0=; b=vvFkSiDoXIwB8DHlJYY1laq4G6gx/wWrusiEl0BVUs+VEX1rkMaGqZ6LJJiQjQxycH qt4uy96/STBcusZWqrYBlbfMchZ8Cw72tRsWTcI9t7IMAmzTLvgPAXOkO5oBDRrGuzJu Ku2VuBSU3t07stXX17znoatspyz7nh8YLhmPjCurBihAJCOAN5tooaWhd6qmaBCxq14k 1/NCZT6Ac6hiZHBl2anN8zlIn32ro9FtpgOHDiXchcbzhyKNklLtIY2Az7NilOmcFqkC pCTC93ChA2Z0y034HTriq3YJ05l1bBuH+dglNdRduMB4+kB6+4XtIX6mCke7MOhgKENe VYhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="JR9/49oV"; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si13373508pfm.50.2019.06.11.05.16.50; Tue, 11 Jun 2019 05:17:07 -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=@nvidia.com header.s=n1 header.b="JR9/49oV"; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387941AbfFKKyU (ORCPT + 99 others); Tue, 11 Jun 2019 06:54:20 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:3975 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387489AbfFKKyU (ORCPT ); Tue, 11 Jun 2019 06:54:20 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 11 Jun 2019 03:54:17 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 11 Jun 2019 03:54:19 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 11 Jun 2019 03:54:19 -0700 Received: from HQMAIL110.nvidia.com (172.18.146.15) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 11 Jun 2019 10:52:37 +0000 Received: from HQMAIL104.nvidia.com (172.18.146.11) by hqmail110.nvidia.com (172.18.146.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 11 Jun 2019 10:52:16 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 11 Jun 2019 10:51:55 +0000 Received: from dhcp-10-19-65-14.client.nvidia.com (Not Verified[10.19.65.14]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 11 Jun 2019 03:51:34 -0700 From: Bitan Biswas To: Laxman Dewangan , Thierry Reding , Jonathan Hunter , , , , Peter Rosin , Wolfram Sang , Dmitry Osipenko CC: Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik , "Bitan Biswas" Subject: [PATCH V5 5/7] i2c: tegra: fix msleep warning Date: Tue, 11 Jun 2019 03:51:12 -0700 Message-ID: <1560250274-18499-5-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560250274-18499-1-git-send-email-bbiswas@nvidia.com> References: <1560250274-18499-1-git-send-email-bbiswas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560250457; bh=Qae36JSCpcTdcklRmVE7XBNUMoQSDDFmpYRBvHliYh0=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=JR9/49oVDCxWGSptD7JxMxVU1M7CXJt9lnlYu+2CIeFrMTbY6TEVyukW6Z/gzinOZ //JIGXHY6VkutdF2U1wjrRxkMx3ESB9GTsQODS9dMgiQs1ZSZsb2jF+/baqK9+r2L3 D/x4Sktg4YxEAn/s0nuCOtG8kyDvqk0Rx33GNv0MFfd94s/HCE0D6dLIdQOVstycS7 aNEDZWw7Qkt67RP7PC07rwG8l8nvkcf5A0OgLacqMgjCM1eh1Y84PFucJU9zSsKstZ Q8ur8dtxaYrOd4P3VPhqQh0YCeR+IMyPJL6zCvg6HJeJ3LSmjdlapMwC54HDI8llBQ OqE0tIHy3CD9g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch.pl WARNING for delay of approximately 1msec in flush i2c FIFO polling loop by using usleep_range(1000, 2000): WARNING: msleep < 20ms can sleep for up to 20ms; see ... Documentation/timers/timers-howto.txt + msleep(1); Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index bececa6..4dfb4c1 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -476,7 +476,7 @@ static int tegra_i2c_flush_fifos(struct tegra_i2c_dev *i2c_dev) dev_warn(i2c_dev->dev, "timeout waiting for fifo flush\n"); return -ETIMEDOUT; } - msleep(1); + usleep_range(1000, 2000); } return 0; } -- 2.7.4