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: 13267901 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F460C7EE25 for ; Mon, 5 Jun 2023 19:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbjFETIh (ORCPT ); Mon, 5 Jun 2023 15:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234818AbjFETIg (ORCPT ); Mon, 5 Jun 2023 15:08:36 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2769210D; Mon, 5 Jun 2023 12:08:33 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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), }, };