Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp403860pxp; Fri, 11 Mar 2022 06:37:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYU0RkUUF3kJf1JeKqHNTNe+XoVAbGq4NLaORhbSN6zSc+fZ4lPI5eiAzwwMIlmnwWCUqa X-Received: by 2002:a05:6402:35c7:b0:416:1e3f:739f with SMTP id z7-20020a05640235c700b004161e3f739fmr9049622edc.209.1647009463192; Fri, 11 Mar 2022 06:37:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647009463; cv=none; d=google.com; s=arc-20160816; b=q9VO3W3zjRqebkVQNVYJIurHL3mXzTqDAHuao5RmZEIlIu19O0d7lnds+IA8+W1Dix 31o/hfMm/H+O4cfGdp9uv5uRX1uyYr449/CBJ+y2U7D/73X6WkjI6Zf3Z1XS3auZJUUv dmltwfuaqyIvjwERMWxDrVMTsGRKE9vii53f0eca0JwIis0LyHLjEXhr+wMoG/JHi9U9 jxKdeSVTmVPBO2xABnO7u8XKwl24xV0oU88+cBcTKC+D1dvsN/n8zq9H6H13rt9T4HVk 0RcegHesHJnjnSfVgdetlow8w0qDRGtWGIFoGEcOcMXvFgm//aW4hcrXc6pV/OQ5jw4j unpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=N/Judw0G+w7IB/FMHgMpqSjqONuj/6V4D+sv/ZzXgao=; b=LIAsXBOnGwXC4hEctCmCwffgc45CZJpxByXJ3DHfh77wkp11rM+80aSSvjHtnBqzuD cAE0WtvwsQdaH8iHBexLo09FeniYLHgbtCjccou+Tbof0K3eqpt+vFezBQwqUju5znC2 vU78R6O1p9rOhqGdwBO1UT/yc/k/tRQwP6SY1S33BqNGx4nITMrd/Y4oAqWuq/kPtmSe 1BtExcFkj8V86t4RvGrmxAZC5bTu0aLG9q70AJaKTcm1Y3cRWPwN2VjiTLRBR+Fqs2zt FpRDp6o+MzUYk5Kx/7viHaFfgoDyQX9xHEyEEmJo+fryzhqjZ79gpLrxiZ/el4ugv3qs naEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTAsKMDC; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020aa7d448000000b00415b0773014si5187425edr.17.2022.03.11.06.37.16; Fri, 11 Mar 2022 06:37:43 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=uTAsKMDC; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345765AbiCKCyq (ORCPT + 99 others); Thu, 10 Mar 2022 21:54:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345750AbiCKCyo (ORCPT ); Thu, 10 Mar 2022 21:54:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F081A636E; Thu, 10 Mar 2022 18:53:42 -0800 (PST) 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 A219BB829B8; Fri, 11 Mar 2022 02:53:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 411A3C36AE2; Fri, 11 Mar 2022 02:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646967220; bh=N/Judw0G+w7IB/FMHgMpqSjqONuj/6V4D+sv/ZzXgao=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=uTAsKMDCmawf6b7O8XGFKo6yDDlfKuY7527BdQ4QmvqvDeiZizt5rkUhcNWSOmBtS ltR7uW3+CsCgazugo0P587OgJGbyL9fbjCwbKkWFdE4SnBxsajHkyECvn1V/llBYZ/ xgryWTRgidk29I4inuj5tRoC24QT6joohXfpWJhIkNsGVHx/wmQ4AntRl+kPQF7zU5 IcUwgGU+FzjWpctUy982UAL9H+DNowgSb07cgabFSEC7+odDcm2l2YKta/PwrOOBbu 0VBfJmceT1RcSxbMBMrc0xKyjvwb4Z2CXYLwNfmsjxJYqTsPm4PjK1/Thn6e1BRlFx 8OgSxayF6Sm3Q== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220126173953.1016706-3-kernel@esmil.dk> References: <20220126173953.1016706-1-kernel@esmil.dk> <20220126173953.1016706-3-kernel@esmil.dk> Subject: Re: [PATCH v1 2/7] clk: starfive: jh7100: Handle audio_div clock properly From: Stephen Boyd Cc: Emil Renner Berthing , Michael Turquette , Rob Herring , Andy Shevchenko , Geert Uytterhoeven , Arnd Bergmann , Michael Zhu , Fu Wei , linux-kernel@vger.kernel.org To: Emil Renner Berthing , devicetree@vger.kernel.org, linux-clk@vger.kernel.org Date: Thu, 10 Mar 2022 18:53:38 -0800 User-Agent: alot/0.10 Message-Id: <20220311025340.411A3C36AE2@smtp.kernel.org> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Quoting Emil Renner Berthing (2022-01-26 09:39:48) > It turns out the audio_div clock is a fractional divider where the > lowest byte of the ctrl register is the integer part of the divider and > the 2nd byte is the number of 100th added to the divider. >=20 > The children of this clock is used by the audio peripherals for their > sample rate clock, so round to the closest possible rate rather than > always rounding down like regular dividers. >=20 > Fixes: 4210be668a09 ("clk: starfive: Add JH7100 clock generator driver") > Signed-off-by: Emil Renner Berthing > --- Applied to clk-next