Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5431362rdb; Wed, 13 Dec 2023 08:27:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3l2xT4pfe5NfaYO5J9ui+C+AXii1CSmioyQgLdMU57ToSIF2jk3qJ2rLREpL4w+EVFJ6v X-Received: by 2002:a17:90a:728b:b0:28a:f0de:6bdf with SMTP id e11-20020a17090a728b00b0028af0de6bdfmr397488pjg.77.1702484821709; Wed, 13 Dec 2023 08:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702484821; cv=none; d=google.com; s=arc-20160816; b=J6F9JVgJmJ/iD5eb/kDf67XvJNNLyWQ9bGGlHiGJPo/j8rijIYOsX0/XKCwdFD4Yui vq33m28fKnj7u0fvRvWCstMNGXMlJpRKEw+uv1mlPf8XZmCj30dvnvKGE93/5WPs2nMv RabC1afFAgC+yfaa5z4dkLQFSyfbK6+XUbdxvYXXfZiPfP3B9eto4R3BR7FvNDrsbNdV IvejXvaHzNsKi+c13ryGBRdDDzRDwsQLGef/nPNkHC8O8SPQcaU8YuAb0q5N+BAj3DkS DQaKH6zfjuqQboDu0DwGupOusjeStKEFtqychHWNUzlN44e6/jU+jql4MvbhOX17g5Li Aevw== 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=wCiCJAKghpLxXT0rcj6Va5csdjRSpK40eteApCBFXHc=; fh=xiYSW5Wp9fJ/rjEleQhRl72AvLzaBFRuXIhfDsaESB4=; b=XY8XT8qjEr/UpR5JVdp8docadmztv726VFNDhE5quHspWvrYYlqPNTjuBAmXyDmQnJ lM8sATRWmwKLp1grwnQW0NQ+tM51kVjtkQhOezqViDC+WEqvcL7yud9NRXCFPDvAGg21 LbQn21VY1safEVQ14Oo4ldN5IsVcCgc6k7M60ai39BCbVhWrW65v3si0gvfvPyAeQR7Q z/h87d+zEOmRrT/7vcDLoXoUqfbNLDMBawrgUmgYMcWR7YO2FnBQi5WnmKdBKbNVf+g6 DQM21uGZI+eLdYDTIQz3bHep5W6ivC2KLG9hFJFaLwk9RP/swDKqFhpcMan1IcoMiFBD ofCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lDbYrak0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q10-20020a17090a9f4a00b00286f3ca408dsi11196713pjv.132.2023.12.13.08.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:27:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lDbYrak0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 35E6A8280800; Wed, 13 Dec 2023 08:26:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233604AbjLMQ0T (ORCPT + 99 others); Wed, 13 Dec 2023 11:26:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379383AbjLMQ0N (ORCPT ); Wed, 13 Dec 2023 11:26:13 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B62E591 for ; Wed, 13 Dec 2023 08:26:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702484779; x=1734020779; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Q82MA+J7j3N6bQ85PNxR0xck1Z52kqDFLIJ5jhv5BJU=; b=lDbYrak0FhABCY6XWFrgVw163ckh1TvzTwQKLprDQXDvNSYutiEnayzi 4bF5qb9dwBDdWqhOoe/VYQ/iimrJn2NcuxGpWmnk5vF2935vsVjPqTPdx rAez67vc7W3V8iHjZFTLuZ89X6IsiMcH6rJySb5jdA2gXP/lV0rapB29u +HSFdmT2LLfscmAbPI0bQzPMz5JMT8z1LvwuSi9t2BnBJjnvYPHhRh4Tu YSUCU7n6mvGi2Q5fVpkH+mMJ/REFIk1rryMkqVp8t4oTt1LD3SxmM2h/T mPRSw7IxTQF4BHNz5N1NCiX39sW8zU1ltuAQ3EFlEzSU6CCO6sUrkjwR/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="394742084" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="394742084" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 08:26:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="808213061" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="808213061" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 08:26:04 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rDS3d-00000005ZWp-2wpH; Wed, 13 Dec 2023 18:26:01 +0200 Date: Wed, 13 Dec 2023 18:26:01 +0200 From: Andy Shevchenko To: Lee Jones Cc: linux-kernel@vger.kernel.org, Alex Vinarskis Subject: Re: [PATCH v1 1/1] mfd: intel-lpss: Fix the fractional clock divider flags Message-ID: References: <20231211111441.3910083-1-andriy.shevchenko@linux.intel.com> <20231213161352.GQ111411@google.com> <20231213161854.GR111411@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213161854.GR111411@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:26:59 -0800 (PST) On Wed, Dec 13, 2023 at 04:18:54PM +0000, Lee Jones wrote: > On Wed, 13 Dec 2023, Andy Shevchenko wrote: > > On Wed, Dec 13, 2023 at 04:13:52PM +0000, Lee Jones wrote: > > > On Mon, 11 Dec 2023, Andy Shevchenko wrote: ... > > > > tmp = clk_register_fractional_divider(NULL, name, __clk_get_name(tmp), > > > > + 0, lpss->priv, 1, 15, 16, 15, > > > > CLK_FRAC_DIVIDER_POWER_OF_TWO_PS, > > > > - lpss->priv, 1, 15, 16, 15, 0, > > > > NULL); > > > > > > What an ugly interface. Intel-only too, right? > > > > Nope, de facto way how custom clocks are being introduced. > > See clk-provider.h for several similar APIs (that require an > > additional, custom, flags to be supplied). > > This call only has 2 call-sites, both Intel. Yes, but the clock fractional divider is used wider. And again, it's not related to Intel, as this how clock framework does the custom clocks. I don't know how to say this clearer. Whatever, thank you for review and applying this fix! -- With Best Regards, Andy Shevchenko