Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6234798rwd; Mon, 19 Jun 2023 04:33:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57clGgjWvCpm+k9WhaMx7Tjlx2buRPrYN96Q8HDFBNOuaVLmJaAc/4w4mRum+ptRh37lq3 X-Received: by 2002:a17:902:e5c9:b0:1b0:3742:e732 with SMTP id u9-20020a170902e5c900b001b03742e732mr11809328plf.23.1687174415579; Mon, 19 Jun 2023 04:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687174415; cv=none; d=google.com; s=arc-20160816; b=IVldyds99LiNn7rv1WNpas0vldDbWMsvhzyROmrYpNgD7a1TibLnscYsiMgt1+ojMh XRpVmIckHWsd8P9pxSLRUQQ3Nv+zC3qJonCJxuf5yrQnyDcjD/9rPfa4YyjuRgtDDy9C NNO8+QzDMaJlTIUeUcaxrdriiA0vvCfJGjYUTTApgH+N/M9TEYaGLDj/ib15BXz2O3Jo NN3vAJHBjMTmv5sSFuAchca1huhfoNYWXThJcrxbB06yq1AWdwed9zBz20mLlUERmVC/ OGv5JYUzLDdbFchSMq72CltaqUQCaf0uvm87uJ7JIWNL0Ik04sRwlSOEogbNJwql8O/m VfVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Pp29PplG2984u7QZS4huOLRs/i2TBTJpx28XDgtVf4c=; b=iS6ycqvRWx4RN76zN5cwyvSwsHO1lwvgZoIaQcuxEclzqyb2CBU4UBXASWKDIMHLeS 6clDOL9A8s0Q/RJp77Lkun2MlkRDGGJcopT3OoC3gsBe7pMPW9NT1LMNbHkWMPNbtcIb zgjI3jQP76bAp/PEBWVCO904SjY1E9+ZVosGSoSHQdS1qICBSY4hAvnPHLtwAETVEt96 hHDiTwEKxHp6PGdmUxKDW7oXxIuBnrY7URUvCjnQvkdCC+ItL56yI1mirPshAbRxY101 27yYY6Oc3EEmG6qAB6Gv31OID/lH98U930a/tq6lq3M6Oz6xsmag89rZQ963J9MUVCi4 IXbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BJ+0+MxI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a170902bc4300b001ae38227983si19928332plz.199.2023.06.19.04.33.22; Mon, 19 Jun 2023 04:33:35 -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=@intel.com header.s=Intel header.b=BJ+0+MxI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbjFSL2b (ORCPT + 99 others); Mon, 19 Jun 2023 07:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjFSL22 (ORCPT ); Mon, 19 Jun 2023 07:28:28 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 854DF1700; Mon, 19 Jun 2023 04:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687174080; x=1718710080; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xf23/MtYveY8JP522ZK351WjL956r9eMqWGHw9Q7TQQ=; b=BJ+0+MxIIUvp6uweH/WPwDpP0DWKMr/HntxQXEgyb2ezWu4rxNE8ahPt AXvsUsjPdxzTpy4JemEh/Ng2VrhX73pRHCUynRd3FMeMd1sOT5e5cfYnW uDhmaz+w3bGmNnY+1pQ8k7V9uKuG08uIsU0y6JYbb9sxtjO65w0fW6fv5 ym3AUq0qG81mYQEzMBaxfmqaK250IVnQPyBC6o77nHuXCjmX7g+lzG5VC JFULYN66FHVHTVFKE4D8Cut0vmgJs2po9eule6CiwBKCWEaYX1zn1WYEE Nvj1EeO+pyrteqZVI8KcP3utj/GUqAX+dMDMv2jwKIXr6tJNBoy14BHOz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="349328375" X-IronPort-AV: E=Sophos;i="6.00,254,1681196400"; d="scan'208";a="349328375" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2023 04:27:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="826562710" X-IronPort-AV: E=Sophos;i="6.00,254,1681196400"; d="scan'208";a="826562710" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP; 19 Jun 2023 04:27:54 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qBD31-004ync-2q; Mon, 19 Jun 2023 14:27:51 +0300 Date: Mon, 19 Jun 2023 14:27:51 +0300 From: Andy Shevchenko To: Tomi Valkeinen Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Luca Ceresoli , Matti Vaittinen , Laurent Pinchart , Sakari Ailus , Wolfram Sang , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Michael Tretter , Hans Verkuil , Mike Pagano , Krzysztof =?utf-8?Q?Ha=C5=82asa?= , Marek Vasut , Satish Nagireddy Subject: Re: [PATCH v14 17/18] media: i2c: ds90ub953: Restructure clkout management Message-ID: References: <20230616135922.442979-1-tomi.valkeinen@ideasonboard.com> <20230616135922.442979-18-tomi.valkeinen@ideasonboard.com> <002e0475-23dd-5106-6f5c-e4b50a0c506f@ideasonboard.com> <3e915435-b4d0-e792-6bdc-02bbf8f08362@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e915435-b4d0-e792-6bdc-02bbf8f08362@ideasonboard.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Mon, Jun 19, 2023 at 02:11:09PM +0300, Tomi Valkeinen wrote: > On 19/06/2023 13:44, Andy Shevchenko wrote: > > On Mon, Jun 19, 2023 at 01:14:34PM +0300, Tomi Valkeinen wrote: > > > On 16/06/2023 17:37, Andy Shevchenko wrote: > > > > On Fri, Jun 16, 2023 at 04:59:21PM +0300, Tomi Valkeinen wrote: ... > > > > > +struct ub953_clkout_data { > > > > > + u32 hs_div; > > > > > + u32 m; > > > > > + u32 n; > > > > > > > > Please, use struxt u32_fract instead of m/n. > > > > > > I'm not sure how that helps. The documentation talks about m and n. Using > > > different terms will make it more difficult to compare the code and the > > > docs. > > > > You can always add a comment. > > > > (For example in drivers/clk/clk-fractional-divider.c our documentation also > > says about m/n, but most of the people understands that this is about > > fractional divider and actually with properly spelled parameters it will > > help others who are not experts in the CLK hardware.) > > Yes, I would agree with you if this was a generic piece of code, but I don't > see the reasoning as valid as this is specific to a piece of hardware. Here, > I think, matching the code to the HW documentation is more important than > possibly making the code more understandable to people who are not familiar > with the HW. > > Especially as for non-English people seeing "numerator" and "denominator" > might require a check to figure out which one is which, whereas m and n are > (I would guess) a bit more universal (or maybe it's just me). I think for unprepared user the English plain words are simpler, or maybe it's just me. At least we have a strong disagreement here, seems :-) -- With Best Regards, Andy Shevchenko