Received: by 10.223.164.221 with SMTP id h29csp3228251wrb; Fri, 3 Nov 2017 03:57:38 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QitRMaSFeQKqY7dNbYGfcv87SqbszaHjrjYSf0o9Bovg9ja7r1b+1I79dUTildb/MG1iCY X-Received: by 10.99.56.71 with SMTP id h7mr6814374pgn.445.1509706658328; Fri, 03 Nov 2017 03:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509706658; cv=none; d=google.com; s=arc-20160816; b=l5DFiXyKwgSuPrezl1kY5a++uUb7k4ieICv7vZzSJkW27cbCL/CuC7oDiGSGPe5RbN WD2DIFYxEY9qiJRq2LMAgmYkX26Mv9kgDJqUE2hi6cXZLUXtbxAp+sTIBpQI2tB7OOc6 +8cYyaRTcrQ4O1V/cCFHgHG6rhfew9c+1OTqrcs2trUhapkLxv/44ZSodhbaNlWCYUcM wwRUVL3yeO5HtHGIV3eLbw/pVJTjTDkxFckmeLFM+e7lmhlybtCSvI3qiUtUblS9Lg/T sDARAwzmihl0f54yRoci3h1mUQKf1tUojfD65BOuSkgeG6uWXretcWbrmk+YeKEfvsvw xdTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=odghZWNT3WVdz85km+/Acj7ZOMu2C8ymm63zfdbwwHU=; b=iwsvK3R+HwrF0HyIYduc3IGPzBKATbAxwxw/SPmff8SuHUVyEQuciZWN5COkUCIW6p ZRHGRqdULGQq4Ry5mBNoupDXxPCVS/bkJTGV22D95CRHpAyPV7lkY4uZsazUhMW311Va I4+fs3fbhgSCarJD7FwEh1euDpV+8CAtYcPrTnqL+is4+sp9V4X6fy9yfQr2tbUohQ5z 901zQXiF2sVrgszxZTIZ+D5sbHqk9X1zOjtKP6IeK4xNHIqxtoK0Nuz0GRkTmxQLRoXY GFW3l3LYty8GcxNgyNxj8rF7CU/F1GHdO6joW9CXe2RKVFHsx4HQb3i5JBvj/bgzXScP MYUQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si4203522pgi.574.2017.11.03.03.57.24; Fri, 03 Nov 2017 03:57:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756082AbdKCK4e (ORCPT + 97 others); Fri, 3 Nov 2017 06:56:34 -0400 Received: from aibo.runbox.com ([91.220.196.211]:45392 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755969AbdKCK4X (ORCPT ); Fri, 3 Nov 2017 06:56:23 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eAZe6-0006cR-Mo; Fri, 03 Nov 2017 11:56:18 +0100 Received: from 93.89.113.32.ip.vitnett.no ([93.89.113.32] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:646232 ) (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1eAZdl-0000Ce-NQ; Fri, 03 Nov 2017 11:55:57 +0100 From: Egil Hjelmeland To: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Egil Hjelmeland Subject: [PATCH net-next 3/5] net: dsa: lan9303: Replace msleep(1) with usleep_range() Date: Fri, 3 Nov 2017 11:55:51 +0100 Message-Id: <20171103105553.16859-4-privat@egil-hjelmeland.no> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171103105553.16859-1-privat@egil-hjelmeland.no> References: <20171103105553.16859-1-privat@egil-hjelmeland.no> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove scripts/checkpatch.pl WARNING by replacing msleep(1) with usleep_range() Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c index c4afc8f1a66d..70ecd18a5e7d 100644 --- a/drivers/net/dsa/lan9303-core.c +++ b/drivers/net/dsa/lan9303-core.c @@ -284,7 +284,7 @@ static int lan9303_indirect_phy_wait_for_completion(struct lan9303 *chip) } if (!(reg & LAN9303_PMI_ACCESS_MII_BUSY)) return 0; - msleep(1); + usleep_range(1000, 2000); } return -EIO; @@ -376,7 +376,7 @@ static int lan9303_switch_wait_for_completion(struct lan9303 *chip) } if (!(reg & LAN9303_SWITCH_CSR_CMD_BUSY)) return 0; - msleep(1); + usleep_range(1000, 2000); } return -EIO; -- 2.11.0 From 1584743317355398479@xxx Wed Nov 22 05:36:39 +0000 2017 X-GM-THRID: 1584743317355398479 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread