Message ID | 20230611090143.132257-3-frank@oltmanns.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1937503vqr; Sun, 11 Jun 2023 02:08:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uDfoBmEmQHrxfiA1rPFIgHm9CFMdtlz1yklCSA0KW9iGKCBKSxNQz9wjQiGIrXBcb6/lP X-Received: by 2002:aa7:c38a:0:b0:510:e790:48fe with SMTP id k10-20020aa7c38a000000b00510e79048femr2547568edq.6.1686474481747; Sun, 11 Jun 2023 02:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686474481; cv=none; d=google.com; s=arc-20160816; b=nqG7ns6XrPSrUOpAIN/oOnDWEZsIP1fbFw8xKelEzmqw+AybliDwy8I87Quqqd+FGm rF063qlpZEkfJL6UVm7tSA+o8rdIOj6CGYie4iSobsalu/0HYmI7RO6/t899rd7JN53V 67VdjFJOSiXpBNy7Mfx4hBxqGgBUSliodGv/5gyjAvg38PnH/0uWdLyBU3LeR04LJ1lh ydX9V7xL3bknryDLr+9bMGr1FJCGy/2ex/zjZv12Rc+f9rhibMW75dQacvHG/rapTPgK HzktSUvgUL3+dRDn8fFHUYSvEoR+LtbEuPRx3GBSIXodY+LINi/RT1e9f7OXs/67NmNr cPtg== 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=6yxavVTkiMowdP7zQF1qUAVlWmfkvPV68RHvZhsPS3g=; b=PWcilcN2luhAQ8sLaP1NFkPGugXcLRiuzTFMPPn0H/vFyesXRy2fozAIVHcazRU1p6 QJGoXBa9S2M0nxhsW016Jqk41VSvMaxi5lud+2zRlRseWPy0xVg0KG+40dKk5W/1i2+j GMmUqQe+CxF3kwQ3Wpeq8XD3gdSWjTJVp8nmqAcJo/3svqxZ9t5mV18j6weTAFUmejT1 pPgaach0LjGS4KTc1M2jrrs9A6blHWGOadRuaOfyE58SYeZgEBaxVXeuE40UaFWF+I7N sqdqjz9kRDtZowvj9YijmSIBKHMoq+H22aLzCFzOshNAKSxOnd5dnLlTcnL2n3/3IQU4 C2dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oltmanns.dev header.s=MBO0001 header.b=lQavwJ2w; 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=oltmanns.dev Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020aa7d3d3000000b0050bcc56b523si4288656edr.384.2023.06.11.02.07.38; Sun, 11 Jun 2023 02:08:01 -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=@oltmanns.dev header.s=MBO0001 header.b=lQavwJ2w; 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=oltmanns.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbjFKJCN (ORCPT <rfc822;liningstudo@gmail.com> + 99 others); Sun, 11 Jun 2023 05:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233484AbjFKJCK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 11 Jun 2023 05:02:10 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1727136; Sun, 11 Jun 2023 02:02:06 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Qf82g1C9jz9sb8; Sun, 11 Jun 2023 11:02:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oltmanns.dev; s=MBO0001; t=1686474123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6yxavVTkiMowdP7zQF1qUAVlWmfkvPV68RHvZhsPS3g=; b=lQavwJ2wTt1AaLWwl3wPuVfxFeYPMInwxrXJwQd39ugE/gaa+DhLCxh+r7yczbCKkcP3K0 cIZYpYzUDluSmD5eNwQAoDRpeb9QcV27//CfeMdkmRPvmY4xSc6ZeDimBXPuSO9IiVVilV OncUnzYoQ2dmmDRENiunTthW9DZNbmEoxO9Kn2rDIUopGPCAiHQU7ljlH3Suh5MaXACNJ3 upBsRq9rYVfjLwLUlDKNF22pGg/EYtJzzqqwrnacUNVhoPjEydVtz7WZtopgoKId/rREok p1vmz0YpPQ4+xYB6yh71sY/dDUmcc5WlRgdqGjJHTnK899GyoNU2fnfGV1PQiA== From: Frank Oltmanns <frank@oltmanns.dev> To: Andre Przywara <andre.przywara@arm.com>, Chen-Yu Tsai <wens@csie.org>, Frank Oltmanns <frank@oltmanns.dev>, Jernej Skrabec <jernej.skrabec@gmail.com>, Maxime Ripard <maxime@cerno.tech>, Michael Turquette <mturquette@baylibre.com>, Roman Beranek <me@crly.cz>, Samuel Holland <samuel@sholland.org>, Stephen Boyd <sboyd@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 2/2] clk: sunxi-ng: a64: allow pll-mipi to set parent's rate Date: Sun, 11 Jun 2023 11:01:43 +0200 Message-ID: <20230611090143.132257-3-frank@oltmanns.dev> In-Reply-To: <20230611090143.132257-1-frank@oltmanns.dev> References: <20230611090143.132257-1-frank@oltmanns.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768396666582389733?= X-GMAIL-MSGID: =?utf-8?q?1768396666582389733?= |
Series |
clk: sunxi-ng: Consider alternative parent rates when determining NKM clock rate
|
|
Commit Message
Frank Oltmanns
June 11, 2023, 9:01 a.m. UTC
The nkm clock now supports setting the parent's rate. Utilize this
option to find the optimal rate for pll-mipi.
Signed-off-by: Frank Oltmanns <frank@oltmanns.dev>
---
drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index eb36f8f77d55..125ae097d96c 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -179,7 +179,8 @@ static struct ccu_nkm pll_mipi_clk = { .common = { .reg = 0x040, .hw.init = CLK_HW_INIT("pll-mipi", "pll-video0", - &ccu_nkm_ops, CLK_SET_RATE_UNGATE), + &ccu_nkm_ops, + CLK_SET_RATE_UNGATE | CLK_SET_RATE_PARENT), }, };