Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp807988imm; Fri, 27 Jul 2018 06:32:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpchAWndctDADAxGR9YAJsnIQ8mV42X2NO7SV/lklsyEUWHI8ebF3X7okkhAV+EcV1jh6WIa X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr6228801pll.165.1532698333655; Fri, 27 Jul 2018 06:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532698333; cv=none; d=google.com; s=arc-20160816; b=nJpSk/TM6wRpYphWd7yTud79mEGOYEiacNi4vnoHGg1glIaHmdOesTA0d7PayU0X0i IucpQgoisA8h34+xocxwQE9EmZUxgb3FGbMDfndY4d+kL63KHzDkbryWHQ3D41qOT8/z ZpwYGtuKI1d+w8vL8Ec8cv5cW3si1ltfNUcuI1cq75nWiR8U5ps4dOh8QMuPlamqxBe/ A1vw8aqnbBULt2a5fBwyBTlmgOs/NtDOWp4jQakzucXUKGRmwzXOGCsjPmehB4RbpP5d j8LaxRlotUJ0bAiOn03IGM6ebGVtQbXd+j/manSxoQ9vuj56r4FX7kwclUEY/+mtFP9V A8Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=z4JL4dNTY6wQmBKZu5/NuR2o5WOL3AeEGCB7xz6d7NI=; b=yYGo1LetBjxDKSVG0FjgWnVx3EUnhLTFHjCqA+ri5zhencj32gCnrENrxzXUlhxpBj 6PCr/UwEph/G0zsM1evdDVNK408UEAVBn1tnLykfnTBjU5ni/JubYavtVQbxp6TEs2tZ k6crYLsd+r2NNdSDJdzCgqvAam9urmlqFJP5d811Y1wlmMrJM9Wl6y3uinoFEejXOb8n 55rDdrA0588om84xIH97w/AG1m0G8U/dbOx3nwJcZQqffv3dNuC6cDtT0a6bIqq9yNgg 8S1yA2EtDskP2MKjLQxGELRAViFyu+ljwNn2OT7JfOu9k8SKp7J3SiYl6JlZgHqS06/2 K7WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OoYefx5e; 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 l1-v6si3721491pgb.464.2018.07.27.06.31.58; Fri, 27 Jul 2018 06:32:13 -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=@lunn.ch header.s=20171124 header.b=OoYefx5e; 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 S1731898AbeG0OxF (ORCPT + 99 others); Fri, 27 Jul 2018 10:53:05 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48417 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728521AbeG0OxF (ORCPT ); Fri, 27 Jul 2018 10:53:05 -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; bh=z4JL4dNTY6wQmBKZu5/NuR2o5WOL3AeEGCB7xz6d7NI=; b=OoYefx5e77KrtwG0iqaVFaAROYJYyAfA9lwMU47SpicaakcD5iBsMWXfFPF2p57vlFhjziGfrNcUDLV2YLf3O6/9CHLiV/5XRgap0MlJNwZXGQAYy4jmwRMkHbTooy1eLcgxMx2xJokPvsamfmWGSETLYYsFkzqtfIF2A0TAVEc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fj2pm-0002Ng-S6; Fri, 27 Jul 2018 15:31:06 +0200 Date: Fri, 27 Jul 2018 15:31:06 +0200 From: Andrew Lunn To: Jia-Ju Bai Cc: f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: marvell: Replace mdelay() with msleep() in m88e1116r_config_init() Message-ID: <20180727133106.GB8829@lunn.ch> References: <20180727083425.14481-1-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180727083425.14481-1-baijiaju1990@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 27, 2018 at 04:34:25PM +0800, Jia-Ju Bai wrote: > m88e1116r_config_init() is never called in atomic context. > It calls mdelay() to busily wait, which is not necessary. > mdelay() can be replaced with msleep(). > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Reviewed-by: Andrew Lunn Andrew