Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3566011rwe; Mon, 29 Aug 2022 14:44:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR6auH9IYLT/3hOfDb0VSlJMvY3qVp6SZtGaSh9P2t1gFwoGHzPEhjgBfPfMpSRYm45k3aXp X-Received: by 2002:a17:907:a406:b0:741:8657:c463 with SMTP id sg6-20020a170907a40600b007418657c463mr5183518ejc.386.1661809452248; Mon, 29 Aug 2022 14:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661809452; cv=none; d=google.com; s=arc-20160816; b=QK5MJorVQ+s53xJW/eClLuW0+fQm30A2mJQS4E+iPGLTR6VRmxzKMzsvD/Dk62yE8v jx7GHII9jEoXkADNKQNeH2N2z05wB01n7jfmvOP8Aw0fbnoS4Ar6R0OoHbrp+veLrnQo G+BCqLPucws8kgUuQB8FXOkbWQNk6pCY16kEuRusFisPKigq+G0nNWfAvyq1hbikb8xj aG1rb4AxALRDhz/7hCeDsP4TH9eKjs1SX9ipQAPZRnWt7fJVQ3hDNpN5Fy2cJSpqhOhP Jeqihahd51BMEGYqOLUp6YM9QaRkghnHPD+ax+sz9F+rSvwXskQd/CLZZymVAtusIsG7 JbIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ZDswcnyXvUENgJOzmeK03wAXf4+H5w/UcBK1GwzZ3AY=; b=Nyy1Vj0+LS+8XyYJ09KmrG08Amusx3WlylexV808tMCtXFqcBMxruLGUWk+h4W7O+n kbrBt/ZZBuToVSmQfpsCfU4Cb6GaiQx9lZfKBuPoo5o3H48A+6WcG0QnKr/ACdU+TGjD /VxH5eLr3zseMGoWXo3cLr+QTezAZLomc9A7qEDTubI5XkGT/mTRvhYGnZlsNQL857q8 aQdxkiqMI+opdN9HZo8F6d3MVVKUCyjjDmXmhk3JcxrKgQEltVuNRxfpRz8XcXzn+cbp /KAVC/XPZaqrYie9ZT8dH5i/+CWkvRBcjWVgxnavEefYZk7gjpcHhgu1ZMgnDfD/cmPw HOPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=0HTX24J+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs6-20020a1709072d0600b0073da4a0f01csi10571986ejc.743.2022.08.29.14.43.47; Mon, 29 Aug 2022 14:44:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=0HTX24J+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbiH2VGT (ORCPT + 99 others); Mon, 29 Aug 2022 17:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiH2VGQ (ORCPT ); Mon, 29 Aug 2022 17:06:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3FF7B2B9; Mon, 29 Aug 2022 14:06:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2B198B81162; Mon, 29 Aug 2022 21:06:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ED93C433D6; Mon, 29 Aug 2022 21:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1661807172; bh=0mcDMWOHxrfD5Tv/P4qNMYR0C9A+FHsaDwMm2tRHyOM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0HTX24J+z5lpQJxLBuCvnFqrtnc+m7Vi5tt1i5mJZT0I+7158lB99II5Lb+fqWnKr wemh3r02eTFtMPMyWI74fu2J49hU+J4ADZfvOZrxYCukzVsSF7oAVrHOeYfZ4ZqALt m6c9b/ZJo4L8YJUrb1AJUqcUG0YzBhKk9Tw/htqA= Date: Mon, 29 Aug 2022 14:06:11 -0700 From: Andrew Morton To: Jonathan Cameron Cc: Dmitry Rokosov , "robh+dt@kernel.org" , "andriy.shevchenko@linux.intel.com" , "andy.shevchenko@gmail.com" , "christophe.jaillet@wanadoo.fr" , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "stephan@gerhold.net" , "daniel.lezcano@linaro.org" , "wsa@kernel.org" , "lars@metafoo.de" , "Michael.Hennerich@analog.com" , "jbhayana@google.com" , "lucas.demarchi@intel.com" , "jani.nikula@intel.com" , "linus.walleij@linaro.org" , "linux-iio@vger.kernel.org" , kernel , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5 2/7] units: complement the set of Hz units Message-Id: <20220829140611.5816d090c4505740a97b8918@linux-foundation.org> In-Reply-To: <20220828165541.2cd81c97@jic23-huawei> References: <20220812165243.22177-1-ddrokosov@sberdevices.ru> <20220812165243.22177-3-ddrokosov@sberdevices.ru> <20220828165541.2cd81c97@jic23-huawei> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 28 Aug 2022 16:55:41 +0100 Jonathan Cameron wrote: > On Fri, 12 Aug 2022 16:52:26 +0000 > Dmitry Rokosov wrote: > > > Currently, Hz units do not have milli, micro and nano Hz coefficients. > > Some drivers (IIO especially) use their analogues to calculate > > appropriate Hz values. This patch includes them to units.h definitions, > > so they can be used from different kernel places. > > > > Signed-off-by: Dmitry Rokosov > I'm not really sure why Andrew Morton picked these up as no obviously > dependencies outside of IIO and we have other patches under review that > need these. > > Anyhow, I see they are still in Andrew's nonmm-unstable tree, so > assuming he won't mind me picking them up through IIO instead / as well. > If nothing else git will sort this out when the two trees reach > linux-next or upstream anyway. > > +Cc Andrew Morton. > > this and next two patches applied to the togreg branch of iio.git. > I'll push that out as testing for 0-day to do it's sanity checks then > it'll go out as iio.git / togreg and get picked up by linux-next. > > Thanks, > > Jonathan > > > --- > > include/linux/units.h | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/include/linux/units.h b/include/linux/units.h > > index 681fc652e3d7..2793a41e73a2 100644 > > --- a/include/linux/units.h > > +++ b/include/linux/units.h > > @@ -20,6 +20,9 @@ > > #define PICO 1000000000000ULL > > #define FEMTO 1000000000000000ULL > > > > +#define NANOHZ_PER_HZ 1000000000UL > > +#define MICROHZ_PER_HZ 1000000UL > > +#define MILLIHZ_PER_HZ 1000UL > > #define HZ_PER_KHZ 1000UL > > #define KHZ_PER_MHZ 1000UL > > #define HZ_PER_MHZ 1000000UL