From patchwork Mon Jun 5 19:07:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Oltmanns X-Patchwork-Id: 13267898 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0C82C77B73 for ; Mon, 5 Jun 2023 19:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yRmnw8lcD9u6L6PS8GKlxYdt/2dYG3q3/BlICDSRS2E=; b=QoBXEdss5OwHMg tIYFoF6OZRBCr8CEZ4IFPF4aIF9Y/OoYLP8JeBNQKgqBTRYtiYxaUl8+IXPzIQofGbTxmY/EWruKK CbxA1E92JMpAu23fgNh/ggNf9Yai32YeD3hoSz4XaePcLqdhuzWLGVNY4tb2iqw1ek9lH25HtrRYt gPFjCzAE2qOyG4DXawEXghl7qqjkLSWG9YW3SyGXMALVg/EL0YTKJPRD9/JHelefQmtx3yriJd82k ZPPR6soXWDn9cmk2aniz2EwgcK4r5XinKwzruWyaIVipU/uvZKZCj9k4fTaeQxN6tmflXe3r1VHYs w9pbgPP7gIbVRJSfX9Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6FZF-00GVKb-0e; Mon, 05 Jun 2023 19:08:37 +0000 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6FZD-00GVIO-10 for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2023 19:08:36 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::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-202.mailbox.org (Postfix) with ESMTPS id 4QZjnB011cz9sT1; Mon, 5 Jun 2023 21:08:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oltmanns.dev; s=MBO0001; t=1685992110; 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=MBJxXfSZlpnXqCUjbTwDSPXMgKyZwYKA6JDhh6cxKcs=; b=v+lJ13q9LUA3XetMGXqHTopXWMgAZRu1tBQj7NFqClleTCD7Rij6xCpZn7PYaPh3uewH4C g5ERw1pFi0m0pdMgKJAYbKqdC+m/vlffiRsvZ9QCPryneYcdJduwhiAnZCKv7u/pFLJn9I I4E3y0KWAF8ojWHPRi2AMG7vCouoGw0gamq34BDzqEHrOwOd0SME2xvMwWlwhCkFakX+Qa EA99uZqcztw7J6+zQxasHlOikvtrFlFH+o9FfVSwOKeaHZ/UgutFm+Arpb4y0WAfd3Ewcc UpSf9jPMMXmJc9wwgu4z0lcWim1IQe8nmjWxYU2RcT0I4JbT7L8XrQsOAxaqhg== From: Frank Oltmanns To: Andre Przywara , Chen-Yu Tsai , Frank Oltmanns , Jernej Skrabec , Maxime Ripard , Michael Turquette , Roman Beranek , Samuel Holland , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 2/2] clk: sunxi-ng: a64: allow pll-mipi to set parent's rate Date: Mon, 5 Jun 2023 21:07:45 +0200 Message-Id: <20230605190745.366882-3-frank@oltmanns.dev> In-Reply-To: <20230605190745.366882-1-frank@oltmanns.dev> References: <20230605190745.366882-1-frank@oltmanns.dev> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4QZjnB011cz9sT1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230605_120835_493480_06258A13 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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), }, };