Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5423629rdb; Wed, 13 Dec 2023 08:14:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IH28E1fDT5/mJ9QG8n/RYsoJfwOVmgsuM5RbKMDihdyhai9A8VmUY2r31d13Grwy7VagMqU X-Received: by 2002:a05:6a00:3a15:b0:6d0:8b0d:b8c2 with SMTP id fj21-20020a056a003a1500b006d08b0db8c2mr3538116pfb.38.1702484064086; Wed, 13 Dec 2023 08:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702484064; cv=none; d=google.com; s=arc-20160816; b=cIe1GbGWkn0QvQ+iFe9kNNtgAacdmHY5w4hM8ENaGh2P/Uv4MwNv/niAg/ya+Tt3u/ Mh9nFDxdjT++7SWk3wox4erqAD6Xl40GBGDRMGa4cmgUDdpJdQfynzPITdUpiIYuGxVk /mstQWdhenFZuWeVSL7Z+IN46iR/HayTJakVndhqXrLPfWp4PlhIhVra8obBAqbDmHBr As3sOftJexYYiwgVSePdtwk6gdbzh86NoJIusVz0Hc2k+cmQFm3oJz2c2yVa8azQ8hbc ZTHuhALWtTiGQK7XMlgKJnYmpu+kVkUGjbdlCRhVFnP/Uc3KIC4ksk0ilEnmWlJEivTe vPhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uXAtZRVUQKl8wZ70rjL6N4dlSdQR/aH2vME1wHxLzDA=; fh=656B8pR1znJdePtVejOmwPw+cVpuL/p3neo65MfaXJY=; b=EI0WIwtWP70miEgPC5PyP5z50zNo7q4IfubxrtrQmtC/qdBdCj0s6CbBtr914OM8qU koMz5ZRcgBfpQ0qggLqr8pN3F41xUd7dsFiXXpma+Pju3yEtlUO9dQSwSIGXbXs8ZEVd AP38ko4kcEGOaDg3mGrN8pI/x2/Dhlxtx8DEqX/GIzP9nGtDNSLNmc99PKtwM1jPiITq s1SO7gs59Ce2K+V1YRanG/pXWp83XGicVtR20aCG7mP0Uo0KPGtvbWjzFFuKgtIinI+n 1Ie5jTCz1Ji/rsoEeJ/DxNEgDGWJvcKnovHgSpm65XQHm5E793uDzj0K3WCURGP2OUEq +DEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f2Y/VWIU"; 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=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jc25-20020a056a006c9900b006d0d90e1adfsi674529pfb.238.2023.12.13.08.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:14:24 -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=@kernel.org header.s=k20201202 header.b="f2Y/VWIU"; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 34985827ACB6; Wed, 13 Dec 2023 08:14:21 -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 S229531AbjLMQOG (ORCPT + 99 others); Wed, 13 Dec 2023 11:14:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235223AbjLMQNv (ORCPT ); Wed, 13 Dec 2023 11:13:51 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D32E0B9 for ; Wed, 13 Dec 2023 08:13:56 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63BF1C433C8; Wed, 13 Dec 2023 16:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702484036; bh=qrD0MrsY/L+ptpyJGJ+B+8mNoxKA92VdRp7Ypgf5fYY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f2Y/VWIUrFnciX2ebT4ABNR8Osjl7qn5YgrItr8tv5vMeIikgDgkpPW6nFZagRniS XGUs6B5SL/B4sU2eRQM+tf1Y3YTUIPdQyIfeNAnw9kOp7+00GArd7aNY6e1KXasDmL cAs8L8NOy9/K5gmzfS60qGg5khi4gJtqUBs3guwdQHdEgfvX5IyuJTtiLrTJWJLQmH Zq+zI6KvT+0BHJ7W1rZOOugcmjObEzgpyFGWJ3vsg5IYNexoRWyAJDEvUi0PfqONkS 1x/aKwzDIDGpKEBt2KuLYTbKfLSvyqoIokb9I1dFwgv3wsUNXrR5xT/pvV7+WEt0f+ 8Mhx8enV1AvqQ== Date: Wed, 13 Dec 2023 16:13:52 +0000 From: Lee Jones To: Andy Shevchenko 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: <20231213161352.GQ111411@google.com> References: <20231211111441.3910083-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231211111441.3910083-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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:14:21 -0800 (PST) On Mon, 11 Dec 2023, Andy Shevchenko wrote: > The conversion to CLK_FRAC_DIVIDER_POWER_OF_TWO_PS uses wrong flags > in the parameters and hence miscalculates the values in the clock > divider. Fix this by applying the flag to the proper parameter. > > Fixes: 82f53f9ee577 ("clk: fractional-divider: Introduce POWER_OF_TWO_PS flag") > Reported-by: Alex Vinarskis > Signed-off-by: Andy Shevchenko > --- > drivers/mfd/intel-lpss.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c > index 177915845ba2..eff423f7dd28 100644 > --- a/drivers/mfd/intel-lpss.c > +++ b/drivers/mfd/intel-lpss.c > @@ -309,8 +309,8 @@ static int intel_lpss_register_clock_divider(struct intel_lpss *lpss, > > snprintf(name, sizeof(name), "%s-div", devname); > 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? Have you also fixed this in: drivers/acpi/acpi_lpss.c > if (IS_ERR(tmp)) > return PTR_ERR(tmp); > -- > 2.43.0.rc1.1.gbec44491f096 > -- Lee Jones [李琼斯]