From patchwork Tue Sep 13 10:21:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 12974671 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 69A09C54EE9 for ; Tue, 13 Sep 2022 10:25:37 +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: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:In-Reply-To:References: List-Owner; bh=KHLt1DGmcMzzF26agMbCTio3qU5ySLfpHPfRva9xBZA=; b=MlR1EWi7y7rBTn r1lHjqvQZ3Jsc6sli4qu/diOMq+NvxSjtS31jEQmBEDjmoQXIdVk/H1iQdCP7E8Xmgpq7Y/SHPVsR /rGgjkO4ippfdHzirq+giddx8AHp6PVht8F2MxZgo9AgbzD3hIillyjVjGnuo5lkqQEbKYZAM3pAr jjIIlH+pI+6RC6wIoP/JIJTHzC5wQJFUsXCZQY1IB8/88WsFWWcWHLSa4qlb0PwDk/WWWJaAAzhcp tBVIpF2LH1SVaR14Rha6m41G9DML/dZLrLEZbxWjdWbtMtE1T2yMvC3fYkHsVoyMhhToL8x1eZgB8 sq8q6EsybzVupLZMGRJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY35V-006UPb-I5; Tue, 13 Sep 2022 10:24:17 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY33F-006STv-VV for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2022 10:21:59 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY332-0002tb-SQ; Tue, 13 Sep 2022 12:21:44 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oY333-000TmE-EV; Tue, 13 Sep 2022 12:21:44 +0200 Received: from mfe by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oY331-004pJx-DS; Tue, 13 Sep 2022 12:21:43 +0200 From: Marco Felsch To: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-kernel@vger.kernel.org, Peng Fan , linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH 0/2] Propose critical clocks Date: Tue, 13 Sep 2022 12:21:39 +0200 Message-Id: <20220913102141.971148-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_032158_051374_7966C54E X-CRM114-Status: UNSURE ( 9.32 ) 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 Hi, this proposal is to mark clocks as critical. It is somehow inspired by the regulator-always-on property. Since sometimes we can end in circular dependcies if we wanna solve the dependcies for a specific clock provider. The property is generic so it can be used by every hw clock provider. So it can be seen as generic implementation to [1]. [1] https://lore.kernel.org/linux-clk/20220913092136.1706263-1-peng.fan@oss.nxp.com/ Marco Felsch (2): clk: add support for critical always-on clocks arm64: dts: imx8mm-evk: mark 32k pmic clock as always-on arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 1 + drivers/clk/clk.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+)