Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp638532pxv; Thu, 22 Jul 2021 08:44:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYTkTIujos0RWDoUbO3PJ0WzPeChF+7VE8u4iGShROASoi9FK4GLsVXEdpI7t1g4TRq26/ X-Received: by 2002:a05:6402:280e:: with SMTP id h14mr269354ede.357.1626968656318; Thu, 22 Jul 2021 08:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626968656; cv=none; d=google.com; s=arc-20160816; b=rNMi4SYqQ9bNzA0JwyjH8PsH0pOEtyfzcGACJtz/MZJmIeC1rC1Qnm8NfOlOMfFa8k ic0GLgU4Ydj3+TWq6xdRMJZGUDbY21GfcVfoT7itMTm+y6i7P70DSuzkSxvbpGpm6XnW 5iy+1kEcsdtT+gUXj9r+dNuuGdPAQPZzBEx2WoHK+qo4T49dVFSexAVWi5ZVbNeolUnI StCtKqVmPh7lLOJV+J0RfLYPHipKDCw5iz4f3vYmx3pLR+87XUsWL4Ax8drDeVwc4dnJ rSkxNQ6rPiAa8jwmDl6of+Zb5EEjrKBJgCZW2yw8pYHQapiypiZM9a7ydbYUg9UbDrgy s9xw== 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; bh=0lynPTYh27u4sqepS0/fVUv92CAg0NEuaXcgp812YOw=; b=t9Okyvd5r2k+puh+9vtiAtDAG2ywRu3fZpZzewPUk964TDIuWQgFbatRHeoHAZWC0b +BbzIbkExJTgB36bBNVGlNJVFxCjZWYoJxHIdzMCTOK4XyCoogaCjQ7LMUnhxGKQDabY l1VQDYqhSpv+33X0HrL1AZe24tHXd3kFFwrim/7n/G39QQA0U3/vvE3Tix0/65OlDKSa We2oIKzldaH9jfYrMyidWWuhxHx56yXJAfkuH2oBiQs2npo6GbiCSnBqu54HkP+wLodZ 7c0GVviTHMGi1BOattDxum8/3sgd4evaSHRyKNDONpfmImm7ZgLFOi3vjb+kM0OpSkAa 6jLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si13716312edf.578.2021.07.22.08.43.52; Thu, 22 Jul 2021 08:44:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232227AbhGVPBu (ORCPT + 99 others); Thu, 22 Jul 2021 11:01:50 -0400 Received: from mga06.intel.com ([134.134.136.31]:59349 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbhGVPBt (ORCPT ); Thu, 22 Jul 2021 11:01:49 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="272788297" X-IronPort-AV: E=Sophos;i="5.84,261,1620716400"; d="scan'208";a="272788297" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 08:42:22 -0700 X-IronPort-AV: E=Sophos;i="5.84,261,1620716400"; d="scan'208";a="433170406" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 08:42:20 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1m6apx-00H1rQ-GS; Thu, 22 Jul 2021 18:42:13 +0300 Date: Thu, 22 Jul 2021 18:42:13 +0300 From: Andy Shevchenko To: Liu Ying Cc: Heiko Stuebner , Elaine Zhang , Stephen Boyd , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Michael Turquette , NXP Linux Team , Jacky Bai Subject: Re: [PATCH v2 2/3] clk: fractional-divider: Introduce NO_PRESCALER flag Message-ID: References: <20210716133448.24890-1-andriy.shevchenko@linux.intel.com> <20210716133448.24890-2-andriy.shevchenko@linux.intel.com> <9117e5212a3b743ca541918ec2b701c159ac752c.camel@nxp.com> <08ca856c013aba60e686f050e06a6e3179de6030.camel@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08ca856c013aba60e686f050e06a6e3179de6030.camel@nxp.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 05:43:49PM +0800, Liu Ying wrote: > On Thu, 2021-07-22 at 12:38 +0300, Andy Shevchenko wrote: > > On Thu, Jul 22, 2021 at 12:33 PM Liu Ying wrote: > > > On Fri, 2021-07-16 at 16:34 +0300, Andy Shevchenko wrote: > > > > The newly introduced flag, when set, makes the flow to skip > > > > the assumption that the caller will use an additional 2^scale > > > > prescaler to get the desired clock rate. > > > > > > As I mentioned in v1 comment, it seems to be good to decouple the > > > prescaler knowledge from this common fractional divider clk driver. > > > This way, we'll make it simpler and easier to maintain. Also, then, the > > > NO_PRESCALER flag is not needed at all. However, it seems that two > > > Intel drivers which use the frational divider drivers will be affected > > > and rate negotiation logics need to be implemented for them. Please > > > consider if it's doable or not. > > > > The current driver works for the certain hardware without this change. > > If you think it's better, submit a proposal we will discuss. > > Well, I'm not afford to do so. Just share an idea. I haven't got the > intel HW to test. As I mentioned in v1 comment, it seems that you have > experience on relevent drivers and HW to test, may I encourage you to > do that :-) Or forget that if you really think you won't do that. Noted. I am in support of this idea, and will help with testing on Intel HW if anyone submits the code. > > > If we ultimately keep the prescaler knowledge here, please consider to > > > add the NO_PRESCALER flag for i.MX7ulp as it hasn't the prescaler IIUC. > > > > You mean there is a code which is currently using this driver w/o > > taking into account this prescaller flavour? Can you, please, point > > out, I'll definitely update it. Thanks for the catch! > > drivers/clk/imx/clk-composite-7ulp.c Thanks, I'll update in v3. Can you, please, look the other patch(es)? -- With Best Regards, Andy Shevchenko