Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5841824yba; Thu, 11 Apr 2019 06:56:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw60IbPRPkjSeCJ+0Bz6SsND5khD5IaDsjZ/T8mBmuUu/vX4i/378tWVOfE8CNaR4zwGl8R X-Received: by 2002:a62:6504:: with SMTP id z4mr50311372pfb.202.1554991006300; Thu, 11 Apr 2019 06:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554991006; cv=none; d=google.com; s=arc-20160816; b=eXkZsejq6Nb9gLZ9PODeIIBRN62oOeerZ5bLJ21waYkUVcWKirSr9atc70O8dLd1FJ c/JCXmX+Jt3IgLUnn7ztz279IVwvMWg9VosH7EjKhyRws8xDh6nuoHdR1HEhQQtX7Dc5 kBbiOD9fkEqzXL8srh4sz9LwzyVNPYzddE6eHx35vfXA+s2uSiQ1Rj6KIH8CFhX3IA6u q5fT2twuggMG8a/O0CJFbkjzacZCSrPeKKQOHpm5HXCnJjph50jsyyou9dAID/j6VYF5 67ASP2Ap9dV5mFtoZHTstrlSWiapqjUX1LmDxcGr7OZ4cA281yYY8gKWfubPlXkWugPU XOpw== 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=+ZXXCecld0YuqozvGn7z+63er9LFKxS4930Gf0Vtq+g=; b=QXtt9dITiavcaACWoy3509lXzwUUEh+33YiC7BRzZDKVRP+2KCAT4KqGhh0kj/ySic owdMRMwkwUcm92X7SlBmMD34G0bnkcOVt8OA+nILC58DezTdld4hPU0UO0UTNJJ24RIW KFl0ON+3Tl5g2NJKYgdBp17cVCXmuyGNInxqSI4CO50MdEBSRvRP8kJgZYQ8+Qj8+Lcx HM7sEEhRq4MI+kUmYrRz1vCmA6lJ1AUPADcIQ0r02HiYn6li/cAuMpLE7U5DwqlGyz+T sjdc26GzqP4dQJ2IRQAJ3LFRw8a9BlF6kFeififar1MnWqHXmVVWoaAX/kYQ3QQXe5R/ 2tiA== 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 e15si20979242pfj.60.2019.04.11.06.56.30; Thu, 11 Apr 2019 06:56:46 -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 S1726731AbfDKNyi (ORCPT + 99 others); Thu, 11 Apr 2019 09:54:38 -0400 Received: from 178.115.242.59.static.drei.at ([178.115.242.59]:38534 "EHLO mail.osadl.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbfDKNyi (ORCPT ); Thu, 11 Apr 2019 09:54:38 -0400 Received: by mail.osadl.at (Postfix, from userid 1001) id 2319E5C322D; Thu, 11 Apr 2019 15:53:50 +0200 (CEST) Date: Thu, 11 Apr 2019 15:53:50 +0200 From: Nicholas Mc Guire To: Joe Perches Cc: Stephen Boyd , 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: <20190411135350.GA9420@osadl.at> References: <1554606804-29453-1-git-send-email-hofrat@opentech.at> <155493683173.20095.12913107010666279046@swboyd.mtv.corp.google.com> <20190411025602.GB5487@osadl.at> <20190411125918.GB8986@osadl.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Apr 11, 2019 at 06:12:49AM -0700, Joe Perches wrote: > On Thu, 2019-04-11 at 14:59 +0200, Nicholas Mc Guire wrote: > > On Thu, Apr 11, 2019 at 04:51:25AM -0700, Joe Perches wrote: > > > On Thu, 2019-04-11 at 04:56 +0200, Nicholas Mc Guire wrote: > > > > 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. > > > > > > Not really > > > > > > $ git grep -P '\*\s*10' | grep -oh -P '\*\s*10' | \ > > > sort | uniq -c | sort -rn | head > > > 11800 * 10 > > > 1705 *10 > > > 179 * 10 > > > 74 * 10 > > > 67 * 10 > > > 20 * 10 > > > 20 * 10 > > > 14 * 10 > > > 14 * 10 > > > 12 * 10 > > > > yup - my bad - If you restrict it to code lines - its 1:10 > > not quite sure how I got the first numbers - sloppy check. > > > > hofrat@debian:~/git/linux-next$ grep -re '.*\*\s*10.*;$' * | grep -oh '\*\s*10' | sort | uniq -c | sort -nr | more > > 8568 * 10 > > 860 *10 > > The ratio is about the same in any case. > > > Anyway - is there a reason checkpatch will not flag this ? > > Because the style is not mentioned in coding style. > checkpatch flags it only when using the --strict option > hmm...It sees it is: 3.1) Spaces *********** ... Use one space around (on each side of) most binary and ternary operators, such as any of these:: = + - < > * / % | & ^ <= >= == != ? : thx! hofrat