Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5419909yba; Wed, 10 Apr 2019 19:57:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyULY2+vEzBaYKKIw/dcgdIfa9XaY30wJgXQBv8g6MBY0KDz4qOAw9EZnHni2p1EIHlULd8 X-Received: by 2002:a62:1f92:: with SMTP id l18mr48014881pfj.180.1554951468035; Wed, 10 Apr 2019 19:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554951468; cv=none; d=google.com; s=arc-20160816; b=wLSpBeIhHZ0MPiOt/2BM6XEO98MQeMsZNhBCL7Ai7WcwFA8o3O7gaMBeI5BuYLzVji leQgb/1zUwb8q5BymCVE/6cJoxAK/izN0GugaO91jpg4r8v/PYB05+rvhwlzr6onOl1R Jo9FQRxkGKvj5ivB6a1jAmcBX4IynQlkWe/9vBpthYEseXaVngzAsXRlOXmcjNTWhnrY JKjMXxY0Y29C0uMWS4aowsMMhQtd+C/LUsEdNIZiM6eQkKrxibzZDsEQhMz+oWiceRxD ninQhDGnU7rmxZb8gHPnY1MJcurd+BL5HRZC2xrympgvavfsdjAvRqvsuuidv3FNGol4 cBOQ== 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; bh=ceX9JdrrqkopvLzxhmQ1Ze4kGlO9uTAYsDQq7m4q5kQ=; b=gaHJXeqWPRST9pjP5heFtOKkDtblKnYghZBk8KWIqgGTK/+AWzIMyak3pPtLfo46Tm vWWFrR6Xflxl54cNYkwnSlJ4d5w5lui/FCHvh++scKGpGTBR9j790EQJfVXJD6ecZ+gH 46jLEs1tKa+XYaZM7YSeKpd5I8Vz+RfdKS6ZpjzC7ZuXhKypaJ3Ohpu3OkF3sQLPMjD0 da321S3CQQF6CNE+yvj2fRO/RyYSbeI6Bx6ZFfn/y8Tts9GWIv0S9klTNCqAEH8OMr1h kxmQFbZdJlhhuooMUhmNZZjzxeH58DrDDsXRZ8a2ZSqeaPHZLFD3k/SFHjBncEU7Gzjb OmsQ== 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 125si4214616pgc.220.2019.04.10.19.57.31; Wed, 10 Apr 2019 19:57:48 -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 S1726785AbfDKC4u (ORCPT + 99 others); Wed, 10 Apr 2019 22:56:50 -0400 Received: from 178.115.242.59.static.drei.at ([178.115.242.59]:38159 "EHLO mail.osadl.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726551AbfDKC4u (ORCPT ); Wed, 10 Apr 2019 22:56:50 -0400 Received: by mail.osadl.at (Postfix, from userid 1001) id AA7C95C2DC5; Thu, 11 Apr 2019 04:56:02 +0200 (CEST) Date: Thu, 11 Apr 2019 04:56:02 +0200 From: Nicholas Mc Guire To: Stephen Boyd Cc: Nicholas Mc Guire , Ulf Hansson , Michael Turquette , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] clk: ux500: add range to usleep_range Message-ID: <20190411025602.GB5487@osadl.at> References: <1554606804-29453-1-git-send-email-hofrat@opentech.at> <155493683173.20095.12913107010666279046@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155493683173.20095.12913107010666279046@swboyd.mtv.corp.google.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 Wed, Apr 10, 2019 at 03:53:51PM -0700, Stephen Boyd wrote: > Quoting Nicholas Mc Guire (2019-04-06 20:13:24) > > Providing a range for usleep_range() allows the hrtimer subsystem to > > coalesce timers - the delay is runtime configurable so a factor 2 > > is taken to provide the range. > > > > Signed-off-by: Nicholas Mc Guire > > --- > > I think this driver is in maintenance mode. I'll wait for Ulf to ack or > review this change before applying. > > > diff --git a/drivers/clk/ux500/clk-sysctrl.c b/drivers/clk/ux500/clk-sysctrl.c > > index 7c0403b..a1fa3fb 100644 > > --- a/drivers/clk/ux500/clk-sysctrl.c > > +++ b/drivers/clk/ux500/clk-sysctrl.c > > @@ -42,7 +42,7 @@ static int clk_sysctrl_prepare(struct clk_hw *hw) > > clk->reg_bits[0]); > > > > if (!ret && clk->enable_delay_us) > > - usleep_range(clk->enable_delay_us, clk->enable_delay_us); > > + usleep_range(clk->enable_delay_us, clk->enable_delay_us*2); > > Please add space around that multiply. > I can do that but it does not seem common and also checkpatch did not complain about this - now a simple grep -re "\*10" on the kernel shows that it seems more common not to use spaces around * that to use them. Greping specifically for cases using usleep_range() (not that many) it seems more or less evenly devided between space and no space - so the concern is overlooking that factor 2 ? thx! hofrat