Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5804743yba; Thu, 11 Apr 2019 06:13:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzonRETEvCD1BQUB7UgFr4XeYAtOQQNCpYDh/ms1rcZzQ25IsYzoqKbwHsVQolXjvrGNHxe X-Received: by 2002:a62:2687:: with SMTP id m129mr49064263pfm.204.1554988430455; Thu, 11 Apr 2019 06:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554988430; cv=none; d=google.com; s=arc-20160816; b=VAkZlUmD/PIlB2xTTuPh6JGCNFVScTxrM9R0/uDCIDgIJZkzs3CFZ9LhxpdEXaVZya kuBSXWuGVBn59kavBoQi2762QNByMESLhDmaswa0u/edOwGHb6KjGQIYhg0lKalpEKQ6 sOV/QyN/tcy8rTs3PKK09sW/8JSl/TVdWY9NJujADmLt7p5ZW4V/TNgaZ3SnNY8oitDS e4WNaMmy7V/24ZAtRy9VrsqMB+JwqoRSofqukITk2/8icalUcx9eNQkVxv9ajNj/cd+V WC7c3EqY2qX7O06+xWBOz+Vzbx2vdtwJF9dqzV/KV3jV6QRFmvWH9ZXJy7n745TFmSGy ZfCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=5lWv4brR+nenKgzgOma5/s5Y174tiJmez6mx6Ah6wtU=; b=wXVDi0gl8QvIlKQ/rz+1vur7PKkomOrfvKZ3kCZ7xBN2aVcjh58hpHz+BF3jw94mag bMARwZpqcMem4ep6NIH43CIXkRWp3egSYUKrs5m+Or6ZkCr0VTOEz7AFazy5wzBUEil0 7aznktio6u0rkKu8X+jGr4DnqYJkyO+REaZs9/pKoATra9sXurpodRN+XlKQzbXztxmc z1wWedvBB4vyaru7Ds/EWVvfN2dkEiDVIlXJC12szPAktykgkXwKJ7ctmWROtQMV0wTH 5ifRRQcSvcUmfwruZa+X92Q4/x0abI+gw2LRG+Kivad7YdgCuion2eS2lN9BtW4nkYpN q85A== 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 q128si33269250pgq.430.2019.04.11.06.13.34; Thu, 11 Apr 2019 06:13:50 -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 S1726677AbfDKNMy (ORCPT + 99 others); Thu, 11 Apr 2019 09:12:54 -0400 Received: from smtprelay0206.hostedemail.com ([216.40.44.206]:35521 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726106AbfDKNMy (ORCPT ); Thu, 11 Apr 2019 09:12:54 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 825268368EF3; Thu, 11 Apr 2019 13:12:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1461:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:2393:2553:2559:2562:2693:2828:2911:3138:3139:3140:3141:3142:3355:3622:3653:3865:3867:3868:3870:3871:3872:3873:3874:4321:4425:4605:5007:7875:7903:10004:10400:10848:11026:11232:11233:11658:11914:12043:12296:12555:12740:12760:12895:13161:13229:13439:14181:14659:14721:21080:21324:21451:21627:30012:30034:30054:30070:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: clam65_35f28fb14ab49 X-Filterd-Recvd-Size: 3705 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Thu, 11 Apr 2019 13:12:50 +0000 (UTC) Message-ID: Subject: Re: [PATCH RFC] clk: ux500: add range to usleep_range From: Joe Perches To: Nicholas Mc Guire 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 Date: Thu, 11 Apr 2019 06:12:49 -0700 In-Reply-To: <20190411125918.GB8986@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> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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