Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2829756ybb; Sun, 22 Mar 2020 08:41:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vumqwrTDHOKljiyeoiDkDqVXqNYIaZrqYxbQI8b/+ILYRuTtD7BOExgBTE9avdyd69hZ1K4 X-Received: by 2002:aca:a883:: with SMTP id r125mr13433033oie.10.1584891685973; Sun, 22 Mar 2020 08:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584891685; cv=none; d=google.com; s=arc-20160816; b=wu4HGkAfw+pRemmE3btqkT17PJ/BBtP+vkAPPX9EL/THTF8BAWKTjssVxwbvUHZCB2 MmkHeQfvX8SGI7pT0i2XjsN7UFTAGYIbKuNzmahQM22xIwyWUS5bmvBhR8OIfpfd2Pew h49FwHv8ilbK2lwBKh19yDL3rkPuKMicM38GehOadd1FkL7wXAHVfEJ0ilSCWePqtF9S GPS0U/IBisIk7bgKWtjCe24Ior/qHKwiHg45u6JuZI6J5R0Ms2wO0D4i0nySckG5JcFf y3XN7wEH0G8I+WZ+mH9Y+VCgnZ1U+Z02oMuOqTrCpH6OYHva4CZjsuovquHQb7hOU7/m sRcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rEi0j46bS6kvyWAOGk3YeA0EJnQmsmMcV2ungd/+OYI=; b=JEBu/IDZqhcFZMMrXDZvYtSb6SVLVz/Gl51DTeGUa0Sj4LwdXK1s3m0Y8au05oBxZl y6B9ADUJZBWCgYvTs6i37rnBFSulTCyE3oSKFB4tnFWAXrBpeMf+rAxOqwzPgdekkUTy KEdNTZF0HIj9cu4WbVtLUqim5rVENMUysDzbPgVkRqXTuZx97wI2dMJX8BHlay+teGT8 RBqvaNi9zxgXbxb4n9VVnl6JFukSg84px8r4NGh73unnQrwXav5Fh5Vlv+cXUHKaeh+t Srm0BOERAmajCBVKkRl7wj480pSRumRPwIDaRaTmzLBfuuoT3/tcGHCtoQeObugWhTr6 l98Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=oywd+Bwo; 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 u199si6058599oif.110.2020.03.22.08.41.13; Sun, 22 Mar 2020 08:41:25 -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=fail header.i=@lunn.ch header.s=20171124 header.b=oywd+Bwo; 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 S1726936AbgCVPjv (ORCPT + 99 others); Sun, 22 Mar 2020 11:39:51 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50362 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgCVPjv (ORCPT ); Sun, 22 Mar 2020 11:39:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rEi0j46bS6kvyWAOGk3YeA0EJnQmsmMcV2ungd/+OYI=; b=oywd+Bwo5a/xI+VW+CADtxL1c5 J59l/zr+xkHENCqMV7kkopp99BLQig1S0d8OCKbVbRZ7HmVwmW6/WKXaF2BP3qJEyxBK612TzfUm4 vbkcSJ0cVdA2+oYET5HEwvOb8oSbdl2cbKpkSYtLpsAW2GMV+AlcEcs5sbLDlwxCqR70=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jG2hS-0000cN-EK; Sun, 22 Mar 2020 16:39:42 +0100 Date: Sun, 22 Mar 2020 16:39:42 +0100 From: Andrew Lunn To: Dejin Zheng Cc: f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, gregkh@linuxfoundation.org, broonie@kernel.org, alexios.zavras@intel.com, tglx@linutronix.de, mchehab+samsung@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v4 8/9] net: phy: smsc: use phy_read_poll_timeout() to simplify the code Message-ID: <20200322153942.GQ11481@lunn.ch> References: <20200322065555.17742-1-zhengdejin5@gmail.com> <20200322065555.17742-9-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200322065555.17742-9-zhengdejin5@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -125,15 +123,11 @@ static int lan87xx_read_status(struct phy_device *phydev) > return rc; > > /* Wait max 640 ms to detect energy */ > - for (i = 0; i < 64; i++) { > - /* Sleep to allow link test pulses to be sent */ > - msleep(10); Another example where you should add an msleep() before phy_read_poll_timeout(). Andrew