From mboxrd@z Thu Jan 1 00:00:00 1970 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 70C6DC5472F for ; Tue, 27 Aug 2024 19:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Date:To:Cc:From:Subject: References:In-Reply-To:Content-Transfer-Encoding:MIME-Version:Content-Type: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Gd4PQjjdZLiFuRj4/aa/Rk20+vM/4Yx2uCwANEq7Uco=; b=FzfDCfzwI2ij+NQE83OujcuZY6 q1qTCxUFJeRSnAiFjBF9Swko7WDIh5Vmog8s5IX/pqrnkHH0uf7yreLalth4pwjhIqd3Mb2y2QwLn bdJLcsoD91crcmaEjlozthfz6MFNR9L6btgZWM1M7hJuysn6dKaOViPMahnFKNpguTV8Eyd62vlmV Lbtl8AcJQvmg8SrWX6p73YabXg8D1wdBrnxV6vt/wcHIlOTjTxECn/Fw294IU0HswL280LDeQSQbn N7/zzC1BH9pFcB5p2mxAROvXBnWdX2OK52znK/QO/ULxwUcQcb/BUmUY+wykZprmeb4vXRQEv3Q1u QRtMLpOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sj1cb-0000000Cbrc-41ja; Tue, 27 Aug 2024 19:12:53 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sj1bm-0000000CbhF-1Dng for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 19:12:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 8DC57CE12E0; Tue, 27 Aug 2024 19:12:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8ADAC4AF54; Tue, 27 Aug 2024 19:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724785919; bh=Gd4PQjjdZLiFuRj4/aa/Rk20+vM/4Yx2uCwANEq7Uco=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=lvoac/7EzDXRdcRwaoDg8pXOB6bLbo+cpOjMNJMIaRkHxAxB/DbsA8gXuA/ZVQ5Cu zV7dhvq36LM9k/dm0dHa4HawSAUNjHFnQqTJlkWdA4HY2bYfGOUUa0Z6NbM+v3FwzS DIk31KzgM1LbS7lCzaVlzpxVK3qfg/R6datIRRvF7aUqgkBiufKCYgS1XjiffW/+QO F08BCnwIdgxAwlhb+FGMGboKGoJSH+DLFIHhtapTZvOjs1Tv20gwMj9d3m8B9ztPe6 Dqa+9cG49ammqCQuuouzMTQJySJ2mNPtR2ojW6R1bN4AMKayUOpeFc86hKMRhPElvE wPKG5Vug7iiZg== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240806145601.1184337-1-peng.fan@oss.nxp.com> References: <20240806145601.1184337-1-peng.fan@oss.nxp.com> Subject: Re: [PATCH V3] clk: scmi: add is_prepared hook From: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm-scmi@vger.kernel.org, d-gole@ti.com, Peng Fan To: Peng Fan (OSS) , cristian.marussi@arm.com, linux-clk@vger.kernel.org, mturquette@baylibre.com, sudeep.holla@arm.com Date: Tue, 27 Aug 2024 12:11:57 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_121202_521573_8D14A5C9 X-CRM114-Status: UNSURE ( 8.86 ) 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 Quoting Peng Fan (OSS) (2024-08-06 07:56:01) > From: Peng Fan >=20 > Some clocks maybe default enabled by hardware. For clocks that don't > have users, that will be left in hardware default state, because prepare > count and enable count is zero,if there is no is_prepared hook to get > the hardware state. So add is_prepared hook to detect the hardware > state. Then when disabling the unused clocks, they can be simply > turned OFF to save power during kernel boot. >=20 > Reviewed-by: Dhruva Gole > Signed-off-by: Peng Fan > --- Applied to clk-next