Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6330866imm; Mon, 27 Aug 2018 13:54:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaszR/6vv4ei7Pz8N2PwfL6D/u7xSvBKprnZCecGiq8smK3ioil1Nnr6PFGoVc50XRb25ME X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr14646915plo.213.1535403241252; Mon, 27 Aug 2018 13:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535403241; cv=none; d=google.com; s=arc-20160816; b=lVijdIsEmJ7fMzlWlq4qwi0kJW3U/av66BihdwlHkBxRgkRHuL+LDnPpmmpoGO6z3E tWR9l0ul1f6Rq5xFpQ4TZBgRKeMTd4hdN32Q4cV9R1jhshrdAhgJp5hPhRzq4clYkvsa LYq5AbEBpRc11dKBX4tBcl9qGWJv6HfASy88QVxQNZ0kGK6zmPVU/8MYdOJq5XLAfV3a 0Og7skdh57TI9KazCRu0Jk3FAeGXk+nobf0XlwXmUzCnYdg0V26xxdCHt/SwFmq9hm6j H4sxs1rD95jwDxmGXTIO79ghFp1cNA6msSSiIl57FA6QQtDqgmXonyoQufpTmOFi0YLh 0jHQ== 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:arc-authentication-results; bh=DQf4J+LneJu22uNVheNbhS5VupNGVfDHnuap7xaiXUQ=; b=dlONqLGjNSJ5LFOU2wqL6xmEQVmhlRIRtWn3booi6024e++a4t+2FRD72sxlqvl4Ut L68gEQsQ6fypsoVo8XZBKdxvzEqNuoUVP1lwF+mATAcecPXwvr6IAzXp0hJPzi/Gd/dO IGIuaR/SJG/LcBmrbnL2E8HUlzdmS0pm6Et33smMIgSqAyt2tfeTVzvHtnnTqPJulsrt a4KrDv1sybWXOXpU3rOrYBTfcIW7hxQDLOEopRTS+xkNGJZbOxGXrOAcz1PfQ1LWx7qh 6Sl+4tJbPc/h/Ur7oUY1rQ5390MtYnbDpLRNFgtW5zry4dqCP/wCVDy4pJyCIdwHtUkQ XJmA== 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 x23-v6si262816pfk.25.2018.08.27.13.53.46; Mon, 27 Aug 2018 13:54:01 -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 S1727453AbeH1Aks (ORCPT + 99 others); Mon, 27 Aug 2018 20:40:48 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52247 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbeH1Aks (ORCPT ); Mon, 27 Aug 2018 20:40:48 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 997EF2079D; Mon, 27 Aug 2018 22:52:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 7029E20719; Mon, 27 Aug 2018 22:52:32 +0200 (CEST) Date: Mon, 27 Aug 2018 22:52:31 +0200 From: Alexandre Belloni To: Jia-Ju Bai Cc: a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: rtc-mrst: Replace mdelay() with msleep() in mrst_read_time() Message-ID: <20180827205231.GA24549@piout.net> References: <20180730135903.9442-1-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730135903.9442-1-baijiaju1990@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/07/2018 21:59:03+0800, Jia-Ju Bai wrote: > mrst_read_time() 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 > --- > drivers/rtc/rtc-mrst.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com