Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3432319ybi; Mon, 10 Jun 2019 10:09:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy99MxtgQeH3GuwLnAygwr2IfoXdELoaGmw2z/PUBBvlhJpRLWeK/zGDVcgcZ3JMNuvWqVi X-Received: by 2002:a63:4d05:: with SMTP id a5mr15436457pgb.19.1560186584924; Mon, 10 Jun 2019 10:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560186584; cv=none; d=google.com; s=arc-20160816; b=I3XD7iClunfFwALDCwDAAP2a76/DypenvEs95ljPqwOt0nBtxMvvpvnELIpMkYvbjj I56Oy8goqlEzFTtOVxim3nREH4Ai+aQFpJJ3+3lMW57xIO9PsfzttuZ3B/MBjSMz0Qim impUmzaixGxnb6YEBisd4OKvsbPxXLDNTz5Gio+hCxTw+Ftmgww4pJZNmZKMQA0o4C+C HJ90nFMRF2m2dTAG6xnISbUfCI4pnpAPSrKSRMl2F+x29MKBdzHjtd/NhBkfwxADBy9q tVufnGIgifiLrTyRNAFBISizu2pesuol/PLr0TQAy5qmpoxqgtEHeh33AurMc4lprG8U GraQ== 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=TswsqJvMrARFNa9DgcfzfHHQSTua61J+AF+BRJExAZVxYrrYRyGEByXjENPr9Igokj HF+d4ScrUMpU7B0GFVw9FF3fJcSKbVd6lifNGvC6Xmo5XI+X7CMImPzTUiDg7oyEcnfW NUIUaBbcimwIgAeP7pv8W4EDUF8RV07kaiis0+FJ3DREtqNPYi8Z0NGT6IlKTcYMkg36 GDeHovtxswW2YvRdHltaWg5+PDQqPHgyZPsHqKr5OaeXSmNRf2NKl5dL/4+6cqFyRB2m 9h1YOSqqJveMxYebFaAp4YXpvQxht09BJ3TQ3qR9apm4/S6hB8B4N0Ay9SFv4k4TQW+F KiUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ZMXitLT2; 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 p4si10207336pgh.474.2019.06.10.10.09.29; Mon, 10 Jun 2019 10:09:44 -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=ZMXitLT2; 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 S2387921AbfFJRJA (ORCPT + 99 others); Mon, 10 Jun 2019 13:09:00 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:3320 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387638AbfFJRI7 (ORCPT ); Mon, 10 Jun 2019 13:08:59 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 10 Jun 2019 10:08:56 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 10 Jun 2019 10:08:58 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 10 Jun 2019 10:08:58 -0700 Received: from HQMAIL112.nvidia.com (172.18.146.18) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 17:08:57 +0000 Received: from HQMAIL104.nvidia.com (172.18.146.11) by HQMAIL112.nvidia.com (172.18.146.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 17:08:57 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 10 Jun 2019 17:08:57 +0000 Received: from dhcp-10-19-65-14.client.nvidia.com (Not Verified[10.19.65.14]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 10 Jun 2019 10:08:57 -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 V4 5/6] i2c: tegra: fix msleep warning Date: Mon, 10 Jun 2019 10:08:34 -0700 Message-ID: <1560186515-30797-5-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560186515-30797-1-git-send-email-bbiswas@nvidia.com> References: <1560186515-30797-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=1560186536; 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=ZMXitLT20ZzWCVKlrbOq88GKyghIfXWYrl6NU8meERN+Sevk6C6g6jw9fUn4Ll32R rPWPd7yu8i7LTPndq89pOq1B8nQkC8TGN3R8NCyxtlFdK65U2EdZvIqTcFUjnc1wDk /1LgTZglIUZNMFLPCY5dUYSasgDbO8vMJ87Z4xQ6j8MmcwqSlHvaFAiG4+9pVpGl8o CpFS11B2daLQWNGdGHu5oWzF3jcJpYp56a3fwHODTTcM5flJx6W5C1uAxG5XRVCLQw HevU6ighyGtWB38Iw/5YS/skectsaYmQl6pj5xCWQTh77LcTp25mG9k6Er+6djwjgZ LuYs1vYoYbpSw== 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