Received: by 10.223.164.202 with SMTP id h10csp119373wrb; Mon, 6 Nov 2017 03:46:18 -0800 (PST) X-Google-Smtp-Source: ABhQp+QWcBHHetyeeTTbBzLn+HQMxrO6QM9f/EYoMrePOStDZS7DZGRDhIgd7H/2KNI7oZOQaPRZ X-Received: by 10.159.198.140 with SMTP id g12mr14383197plo.34.1509968777954; Mon, 06 Nov 2017 03:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509968777; cv=none; d=google.com; s=arc-20160816; b=nMeIUhV7kwpx/0D89PI21cLc8CDWnFllK1uI2J59AKoJvc7n0a/vbAcTRk/x3OLJjK PIU9eL4aMeN2uqarJJ5BpRgWijb4aftEClrHwIVNN4Dzr30q99+R6YKYBOd4pGfmYd7c awS4GdaqJlhR7vGeJ5ZTrOYg5OezECQE9d514D3e+897Q0ioK2tFfDVhtcAOY+Zq9f2L ryVA3lRbks532Ofsm/6HxjdFbybuI26HAJOAXcLFTGd7mH4ywUvKfbTGhv233bRaysot Z+Encs61LqdWm6Z9FzZAS6cVR703VUpvwIvtkAWm91sllZrOLsXHz1ac46v8NoJVYUOv iN2g== 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=vfBdUafjWvs/bP6zUoETdqShBYCftQW9ypogXbt58OU=; b=bzK3VYNvWHrlQxscIk91ys6gI5yLUHuzcN4i7SyuEZGi0scLvnVG2wcs0o99uPjGc9 GEoNLQpi+EWBWOOR8JaMyG9yqZ0GDGA52ieQzcni699t0ML52QmpXGlxR2EWWWqhwoHZ 6PPQNjXLSx/1GBLO876A5EvCFzwFZkhF6ef/A4z+buz7UD8edCqepT/qhVSwn/HQOBTj xtsr9xcrGUfiZmmkecKTOZ4qMopQQ9H0jvCl8R/e/3SVfht33DDeA7k5/EMCOqdl9xnW FNKzYtdPgjxlckPW5ksGBngBxlt4vup3zGVq1S3wWKvunI7A1gyOmaUZveO4HH67IiyT 4d8w== 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 z1si11386792pgn.381.2017.11.06.03.46.04; Mon, 06 Nov 2017 03:46:17 -0800 (PST) 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 S1752633AbdKFLnk (ORCPT + 99 others); Mon, 6 Nov 2017 06:43:40 -0500 Received: from aibo.runbox.com ([91.220.196.211]:53104 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752416AbdKFLnO (ORCPT ); Mon, 6 Nov 2017 06:43:14 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eBfo7-0001S4-W9; Mon, 06 Nov 2017 12:43:12 +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 1eBfnf-0008B1-Sl; Mon, 06 Nov 2017 12:42:43 +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 v2 net-next 3/4] net: dsa: lan9303: Replace msleep(1) with usleep_range() Date: Mon, 6 Nov 2017 12:42:03 +0100 Message-Id: <20171106114204.15083-4-privat@egil-hjelmeland.no> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171106114204.15083-1-privat@egil-hjelmeland.no> References: <20171106114204.15083-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 Reviewed-by: Vivien Didelot --- 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 1583515450834672973@xxx Wed Nov 08 16:20:15 +0000 2017 X-GM-THRID: 1583515450834672973 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread