Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5306579rwd; Mon, 12 Jun 2023 03:11:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qr2QtLeHWUY/J0T074CwtPFcNhZc80BEpxpYUwY7j0eCrPNtWCojQPKuEt7mwAbHrAzYD X-Received: by 2002:a92:c149:0:b0:338:c685:83d1 with SMTP id b9-20020a92c149000000b00338c68583d1mr8279112ilh.10.1686564668891; Mon, 12 Jun 2023 03:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686564668; cv=none; d=google.com; s=arc-20160816; b=0uHxbfUriBe+1C71T/DtQI6ucy52rgczbQc8k7vla7Ub2pC7CJoZWV86hVOC86WGCW e1ee/t5kCXT1kmk1oT6SkDp7gSS705tN0LgpSWmQ9qBOCPlZWgyFEbg9990f7k4po6x3 j2OdT6/Zl8EHXwjEskHZoZGoR62bK0LJe48a4JvcFyVzYn5dLtiLQUzwlgApUORykC51 9IKn3hwF6pmCS+9mrkAIdVWA2kj2Q8EjtcLrL++Io4EuyZ1QxeoDZ+FDt5Px3dquFwcl /S37jUMuE8mulhFBm+Boez/B+dkgOOMV6Ng+6ugJbXZNKvWfsNp2FUDwULEbTouM2v44 Kfhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wsfv8tU8typbArcFFZ3RmodVuhSCsV+o3+M2ATwIwoQ=; b=UQJCXWuo/1ePPh++13s2+JKMlWLRMZDvdu0vVYV7E7sk86L22nhvmoI+1VKiUEMw7I 0W4BSb5julKa7QgxjxGE++GoxmtstT7GnhWkeCeP5Odb4Irjm1LAcmbdwB8OK+nGShpW YcSdTaPx6Cg9dKGZwdTov+Ivb2+WdJRWD0krShtlKjytGG4NZbgmrBwil7IgbuFq77Q5 /ipTSRNl/oo2i99AVQdm252oxwH7447hwCV2+egbuBKlfIvBIpucqwBDI4ZZKMYxaCqZ FCvK6zm/1jQDizcV+TZWczTGXCwdAASsRGlpOZ71zjIptLJ38AZdQ1R3DWkhgRKo+JQu WjOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TUVRaQrj; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u197-20020a6379ce000000b00535bf852410si2708732pgc.313.2023.06.12.03.10.56; Mon, 12 Jun 2023 03:11:08 -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=@linaro.org header.s=google header.b=TUVRaQrj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235012AbjFLJro (ORCPT + 99 others); Mon, 12 Jun 2023 05:47:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbjFLJrI (ORCPT ); Mon, 12 Jun 2023 05:47:08 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 261E75261 for ; Mon, 12 Jun 2023 02:34:11 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-973bf581759so731800066b.0 for ; Mon, 12 Jun 2023 02:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686562382; x=1689154382; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wsfv8tU8typbArcFFZ3RmodVuhSCsV+o3+M2ATwIwoQ=; b=TUVRaQrj978yj3MbisxqkjQ+TD0JBBm+EutSEaAHeOCuts1Q0j2OuxULpIx2+Bsi15 ltrB5Na0agI4WZIIGzJAK7rc6fkrTgH3/y+DbfbT7KocetCj2XbBDy8QAae/kCI03fcV qqb5R0jk/XnngPe6DCxaj7C2MBSVu7X4Sf2Lbyc3+h624qAUhkiURnZDcXbFrOMcI8Go OVnmbrHSlbfViKCQXu3P8DpOOaekybyyjRU7ezTIAYuQczHEHfthZeWLR0Nld+mrVTxZ +9dWL+Vn5v8E4pBCcKXcmRdNfkln8Dycfdu6ib76K8yO27yfeZVCqD1kFtV+CUf5pmqW wOIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686562382; x=1689154382; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wsfv8tU8typbArcFFZ3RmodVuhSCsV+o3+M2ATwIwoQ=; b=fOlPl9/Qs/BeWIjdXMf7EkKXOjs/l+cpZ0QDZu2U6xBawdVmJgm7QzR68SFzVtcMrR 8PbBUigg1rhwi2HJAgfJzNmFxwRbFWOyKVE8trIfM4/E+ZoFXKyp6dgc+WVeTZIgD1cb ojDI4rSfS0NZ12Us/+2sZjyj1oQka8YcclXlp782sQRANknDayTW+0+wjYLvqFJB0xOp UU0CW7Uf+yN8XTwQGU1zcdgUAHSVXXSisW8oWQcF+0tXdp92+bm7X8kf4deL4I6UZbAp uN8oVw+QhxXlfyD+Rb6Af0l8MRjVT+4OMiJ6bvPYpPChzZ+3hR8wiFoBMIfqlEs4/rwM 4wYA== X-Gm-Message-State: AC+VfDxXbaECy+Qe7zLvq44ekTYCfVYYBBdtEVTX9dmgqWIPxWZTjQWw H38MZoC4cLqzSS7f6LNS3onh8A== X-Received: by 2002:a17:906:4796:b0:973:fd02:a41f with SMTP id cw22-20020a170906479600b00973fd02a41fmr10476799ejc.40.1686562382087; Mon, 12 Jun 2023 02:33:02 -0700 (PDT) Received: from hackbox.lan ([86.121.163.20]) by smtp.gmail.com with ESMTPSA id gj13-20020a170906e10d00b00965a56f82absm4908151ejb.212.2023.06.12.02.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 02:33:01 -0700 (PDT) From: Abel Vesa To: linux-clk@vger.kernel.org, Adam Ford Cc: aford@beaconembedded.com, Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: imx: composite-8m: Add imx8m_divider_determine_rate Date: Mon, 12 Jun 2023 12:32:35 +0300 Message-Id: <168656228135.662397.14806433100721864469.b4-ty@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230506195325.876871-1-aford173@gmail.com> References: <20230506195325.876871-1-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Sat, 06 May 2023 14:53:25 -0500, Adam Ford wrote: > Currently, certain clocks are derrived as a divider from their > parent clock. For some clocks, even when CLK_SET_RATE_PARENT > is set, the parent clock is not properly set which can lead > to some relatively inaccurate clock values. > > Unlike imx/clk-composite-93 and imx/clk-divider-gate, it > cannot rely on calling a standard determine_rate function, > because the 8m composite clocks have a pre-divider and > post-divider. Because of this, a custom determine_rate > function is necessary to determine the maximum clock > division which is equivalent to pre-divider * the > post-divider. > > [...] Applied, thanks! [1/1] clk: imx: composite-8m: Add imx8m_divider_determine_rate commit: 8208181fe536bba3b411508f81c4426fc9c71d9a Best regards, -- Abel Vesa