From patchwork Sat Nov 26 19:13:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13056571 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 E309EC46467 for ; Sat, 26 Nov 2022 19:13:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbiKZTNa (ORCPT ); Sat, 26 Nov 2022 14:13:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiKZTN2 (ORCPT ); Sat, 26 Nov 2022 14:13:28 -0500 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB6DBF76; Sat, 26 Nov 2022 11:13:27 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id AA3E85C00A3; Sat, 26 Nov 2022 14:13:26 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 26 Nov 2022 14:13:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1669490006; x= 1669576406; bh=dmPnymUtjq/JHP8L1TCfy8BtIL4oJAbNtHMY/IeTwdw=; b=a mvj/CoTPCviawXVgMgySfk4OBs5KTfm9fF6sD27zkQIhN3lThhRu/Fn55aL1svol sFgUSfa1IgYauU+52RCXscLqWAP6adFc9VAjXgQk0xqT/cJ9X+3OWlzv+y6xVzCA CQLboK2TE48/Z1BILY/w6klY9Sxwk2Iwwq9mJd8psTmq0HvoHCfz/wtMVlLZ8RJF d0dhkI8bOONIBNSX7GIc7Q3aoe7Wv9bIYgD+cpKCSbP0Av3rdt7Refy60ADSdDsB FjJRtDoMBy4CQaB7fPZPsINZxvW8jwuEgfm5sUx2BrpewXQUv3WLuLD91QyGlQCf P4UlRqTScpAYHgNOQKEKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1669490006; x= 1669576406; bh=dmPnymUtjq/JHP8L1TCfy8BtIL4oJAbNtHMY/IeTwdw=; b=J MpUEw86nYlFuZ9yysjlKrxt3m37pvg92ERJXqn07PesK21U85Q3sZwrV0voeyOdc 9y5wLt1zeCAgQNVbqdqfsXaar0ABZZ3z/70N/Qw9CQle7CojD7HGIuRMBozu886p WRx6O6rzrWFXPtiMUsvIlw9BJd6DbZNRce2mPXV5sf0o+dZl/NM6sh8ZK2gUrwxN csgA1evU9CP8TvB0ZT1tMhIYoboXk8JljMSKQnc1iOjZSDSzKcTvK8Pjehr3EBsW Gzjl2ar0IY7jgUe8yqXk5zrng09CKFsJaHmQHfWam0Gz2FG0JkOD1xtbXzuXX1g6 01A0q4al+Ldwpa5Ogqvzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieejgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpeefueevueeffeelheelhfelgeelgffgieekffevteefveejueei teeugfefieehleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 26 Nov 2022 14:13:25 -0500 (EST) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec , Michael Turquette , Stephen Boyd Cc: Samuel Holland , Krzysztof Kozlowski , Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, =?utf-8?b?QW5kcsOhcyBTemVtesWR?= Subject: [PATCH 4/5] clk: sunxi-ng: d1: Mark cpux clock as critical Date: Sat, 26 Nov 2022 13:13:18 -0600 Message-Id: <20221126191319.6404-5-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221126191319.6404-1-samuel@sholland.org> References: <20221126191319.6404-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: András Szemző Some SoCs in the D1 family feature ARM CPUs instead of a RISC-V CPU. In that case, the CPUs are driven from the 'cpux' clock, so it needs to be marked as critical. Signed-off-by: András Szemző Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Acked-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun20i-d1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun20i-d1.c b/drivers/clk/sunxi-ng/ccu-sun20i-d1.c index 8ef3cdeb7962..c5a7df93602c 100644 --- a/drivers/clk/sunxi-ng/ccu-sun20i-d1.c +++ b/drivers/clk/sunxi-ng/ccu-sun20i-d1.c @@ -240,7 +240,7 @@ static const struct clk_parent_data cpux_parents[] = { { .hw = &pll_periph0_800M_clk.common.hw }, }; static SUNXI_CCU_MUX_DATA(cpux_clk, "cpux", cpux_parents, - 0x500, 24, 3, CLK_SET_RATE_PARENT); + 0x500, 24, 3, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL); static const struct clk_hw *cpux_hws[] = { &cpux_clk.common.hw }; static SUNXI_CCU_M_HWS(cpux_axi_clk, "cpux-axi",