Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2821262ybi; Sun, 9 Jun 2019 22:09:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaUjSZg6pdLkD5r4m5AvMEeLSvUzXFaSvI220eB/grEKamq+/zFPcAiy5FwR6XNFm0KAvC X-Received: by 2002:aa7:804c:: with SMTP id y12mr70886800pfm.94.1560143398833; Sun, 09 Jun 2019 22:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560143398; cv=none; d=google.com; s=arc-20160816; b=j49luCC/jlowKkg27A5b4A+Vhsw2zBWq2YIeVLFg/Ra/G2ZBHPlfH4BpgO5mD0QSVK MF0BEOkTHC8IKbDjYcYOWW9F+p/vZNxA21M+xsCvHvsciEN5VwrnbmfPXwo878V7AhQg b+MLzF6qba7G3DgQ4xfrYgtkoi5Be0Wd5vy9DBKXJQ+bRDX7/muzKDPb6HR12lFRqqI4 0X2hBTi2R2Y0k/WinuuSh9d4cjhLTMe2Sxl+vDemSSDYt0zglaRGxeKbqVEF4c2t688k MJotVCWzU7RarYmRknAqm35I9ni9uVRn4H9zUZ/JP7Uepqmw8urEINebWrrv/YSFrC1m azpA== 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=BcbOiKU8zMT16XYzGiZmNXDCIwjld4/bhp35DFPl6P0L9HVJiY8UtCnfB5r7e1z/kj F4P4iyT2HL6jaL+313/ooNOAa1EuWzotiABcjOQAEzKoBdRkbQCYmWCYx6fC7IAsLiXF QX/8ltXFh3+UeHyDXMRUHXRHwdkqXIYgYiQfFq6FvWYC3eYitpgmEvc3OEu/9Rvi6Wee TM3nonJAwfVfBY/xJjS8gVamdQZ9uS4QFSS0wv6nW4Aaqh2a+nwPKVQIN9wGD8fEYnQn klVHik6nxvQgFzKt/jxTXFAD0jrwbbbaIxTYk+xEaY/a/CrDLgq4TC+NmaoIp9ErfpIN ISHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=GtwEHZ3F; 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 q13si8969556pgq.496.2019.06.09.22.09.44; Sun, 09 Jun 2019 22:09:58 -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=GtwEHZ3F; 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 S2387647AbfFJFJO (ORCPT + 99 others); Mon, 10 Jun 2019 01:09:14 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:14308 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387452AbfFJFJM (ORCPT ); Mon, 10 Jun 2019 01:09:12 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 09 Jun 2019 22:09:10 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Sun, 09 Jun 2019 22:09:12 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Sun, 09 Jun 2019 22:09:12 -0700 Received: from HQMAIL108.nvidia.com (172.18.146.13) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 05:09:11 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 10 Jun 2019 05:09:11 +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 ; Sun, 09 Jun 2019 22:09:11 -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 V3 5/6] i2c: tegra: fix msleep warning Date: Sun, 9 Jun 2019 22:08:43 -0700 Message-ID: <1560143324-21754-5-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560143324-21754-1-git-send-email-bbiswas@nvidia.com> References: <1560143324-21754-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=1560143350; 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=GtwEHZ3F04cdL8Nug1X9MEV6fu/XdUB3ZHTgr/0td4byluMW/LVigQAlZuWduQIDV t0gIclC8FwqyCBnFTzX5D4qCNoeMQBRyACDw+0JH3S58FYCTlfMIi4cHi++ca4t7KU oazjbU01EaQZGuNowcwp56Bu1dL+kqtQIVvXPH4nx/52jBllx4yuwjJMj1/oFlzp/Z VapVj/h89CA15wvu8n0bEruhdGLkOVRzZGN6T3qG+C/q7zr3xNhr0I9uCBToCn5o/i 2h6tEjYoL5SzGpzBbC70NvNCVfbQzXAo7I/W2z45DI9GZgDL33IMxESSmksa7rPqnE vuhfvdRORhWhQ== 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