Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9154109ybl; Fri, 17 Jan 2020 07:12:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxBtQZMRG8dXxyXplojPxoOraVQRLlppRLy+o3LZiHN7CPv3aVldueylxJhQPISPXt7wJK2 X-Received: by 2002:aca:2407:: with SMTP id n7mr3801336oic.14.1579273946111; Fri, 17 Jan 2020 07:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579273946; cv=none; d=google.com; s=arc-20160816; b=spALbcPXtCRPjyKmZtay3KG4Qom4lWfXUcLRAXyHSlfhOaAV0BY9Vk91EvpOlEUtXo 6cVIFMGJ8KRhxIS2YBOx/Ajpkp8CZTqiNoepzwD5XPtZrXOYIROw92HusVasJydCIOHa RlZRWiuNpc9sDiCHzAVIlpxzIzsFQWfIvOFwZTv1B4ZMWQjYLXLFqE7UIT2MfF2B52O9 jD1evG2X59/Twcibh2U3WxY7VwC2hzFdfjLnLx2l1z2N38aJwZ/khddA5lcuLsHVYKna /ChJBVdOMdtMJgEOgALF0msR6NGAj+LkRh8YQcLvrEAjeaZ7pATpwCMuvzo5A/3AbHO4 LFmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=DesUuflALP+M7Km3HyTVIX1iNswVs/ME2CU4gzFT4Bg=; b=EwHhmF8RGZz9nEzWna62ARC/lol/+hxDbRBIWWZzt9ldF5iqSJLFnbu9iANKgJHI0U rc82r/02HOiV3zwGaf6gJKbZSThv126Zm7oaIf3aXWwxeHd96ZVfYzyBp7iXm/QQO+tL 3etlQs4pxpneKFpF9pGp+KW+M+3xmKfv2VjtjQlfSixnYYL58RqAF/I5isZkxRnAE+dJ 6UYWxqLK6RrecJav3mjuiEcnMAqRBpOOyxpiyyMe6yfRErRNZjl09B2BKV12d0AS6QiD ENfliCKX0TP2T8z3vXvI2qkM1yMjhm7/etF9B3fIsr2K/WSQOq9Uw8K73n5S+U7qgrm8 SYig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DWpBvWGB; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si3604467otp.211.2020.01.17.07.12.12; Fri, 17 Jan 2020 07:12:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DWpBvWGB; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729091AbgAQPKw (ORCPT + 99 others); Fri, 17 Jan 2020 10:10:52 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36667 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728512AbgAQPKw (ORCPT ); Fri, 17 Jan 2020 10:10:52 -0500 Received: by mail-pf1-f194.google.com with SMTP id x184so12102505pfb.3; Fri, 17 Jan 2020 07:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=DesUuflALP+M7Km3HyTVIX1iNswVs/ME2CU4gzFT4Bg=; b=DWpBvWGBMlKlVcVxGbxODHWtx994uCyaKuHhJXPGKXe0dvuwCzvW/yIJ93SuOIXiDG GBEaabSSZLNcY7B4LCf/yUKKtsvxeVtUDhG2DyC0Z0+16PpUzeerwfDqYfS8gAFgio7Z 4fh9yBiql1lnwq7tDPBT+XyYUiH0wwZj+Btjc036QRDyfFl9bs9jDMrAhdhEyWQyO8zh awk7tB05Lbm12vUCZmPwH9I+/0/fL5is3EkI1yeSumPDOEK0ocqTA7TqGSHRxAeFZ8VH CSCc1Q0fBnKaIwkwoDta+nwU6TngMjQoIyiPuOHNG9nMJ1DUsnB8VXRs7ksytmrYUJae IE2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DesUuflALP+M7Km3HyTVIX1iNswVs/ME2CU4gzFT4Bg=; b=k0PZEQtpv2wS7hw4L6wOWqRzSEbS/uCdkwLuXvefX/FJSWakBAgAeM4Rb27u4RXUgQ IwYioySHHYFAQVMmQkJxh6dpONPAooIzKSBsn33esLRH+lSexNE35Wmbm5bYhjxZHyGP DXYiOcAjORsTLpOATlJh5qp/aAcMnfl7CpPP4AVs6ZkbGBDKFGM9Z7nNjroNgofnMdOx PoUOm/fCdCeVylZue8/N/QSd8WaSrhGDzwyk3+eIL1i5KydKi/NcswcU9i6LjFk4tu7z Y3+3NNyiUzgQImzx7qAfyN8Z0r2O4vQ/3N52U16RcvPMQvn7knYac4qkOkjh65taq1uf m00Q== X-Gm-Message-State: APjAAAUOChzuVJ1m/6hB5hDzsXz48VFUHSHzzxBhBWmtwFc7nSIbLns2 cTXSw/D56Q4Zx+wZGRO+Ab4= X-Received: by 2002:a63:89c2:: with SMTP id v185mr44627341pgd.135.1579273851867; Fri, 17 Jan 2020 07:10:51 -0800 (PST) Received: from localhost (64.64.229.47.16clouds.com. [64.64.229.47]) by smtp.gmail.com with ESMTPSA id u13sm7821436pjn.29.2020.01.17.07.10.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jan 2020 07:10:51 -0800 (PST) From: Dejin Zheng To: alexaundru.ardelean@analog.com, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, davem@davemloft.net, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Dejin Zheng Subject: [PATCH] net: phy: adin: fix a warning about msleep Date: Fri, 17 Jan 2020 23:10:42 +0800 Message-Id: <20200117151042.28742-1-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org found a warning by the following command: ./scripts/checkpatch.pl -f drivers/net/phy/adin.c WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst #628: FILE: drivers/net/phy/adin.c:628: + msleep(10); Signed-off-by: Dejin Zheng --- drivers/net/phy/adin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index cf5a391c93e6..6de25a2d3a05 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -625,7 +625,7 @@ static int adin_soft_reset(struct phy_device *phydev) if (rc < 0) return rc; - msleep(10); + msleep(20); /* If we get a read error something may be wrong */ rc = phy_read_mmd(phydev, MDIO_MMD_VEND1, -- 2.17.1