Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6842842rwp; Tue, 18 Jul 2023 06:42:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZvZ0UVyWDfFmpsG2pqn2p4/TfBn1OMlWL/IYHtXRrTSEenejlL+GzOjlP8/P6SGnjQAg4 X-Received: by 2002:a05:6a20:7348:b0:133:6e6e:2b11 with SMTP id v8-20020a056a20734800b001336e6e2b11mr16404656pzc.2.1689687721482; Tue, 18 Jul 2023 06:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689687721; cv=none; d=google.com; s=arc-20160816; b=AslMDyHb1obDkzYjLScX4oRq36fSuiX7IMjCKFLqaMg1iySNGjGtTnqu8jsoZ7Yltk ObDppvGpY3Jyvz+kP2NZDAcEGq1UKRB8fSwYjU1DVHeb4B3A+qflZj6VkCkUYPfVazaH FqbFsjsEsM3li0N+41wADEdU31w3EYWmFO6puv6wfWNb0euSYv7NHa0fuj2BfUs4HVQk PGHG+Jr6WfS9WdvBvzHBKKd70JWPm25BHPjgm3lvaCJtq0hJjI169TLje7YH2Sn1tJU0 WgczSoUoNIKPkcl1oYjnwhx00MXmtCZH7OgwRGPVYkkLFqbfO7BAQye+MKV7TI0tPy/3 /7OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OxclwlMX7lIJs7o0wH2klLW0Q+4Z+RghxV5miCU4f1w=; fh=tPWqHkSXNpKcNAddf7FP/wUAZtyUVu7X4lL4tcXVkH4=; b=WazclR81z2GDVOlTH6B6U+Z0ibZ9fQAY3n4zjnROyACtSdykj5hvd+fSWcUK0BbD2p lRXwlqiKtOtPt3XRd6ByyN22n/GWbgxEZYd+/fB9wM3WkNb9fHMZQihrBZt0g4gUXhlQ lxDGDc/gXR/8xigAQ16IwgglFqKezKyT9vp9n7zliiSF0sJpBp4d8pZUsLifvz53SjUl l0duKB1I0jeA7WSfEbPOex5VW4aC0nman0NVPf7DEm7NGzd8YZ5FD68kpVI7EseJNTUY /94drlEXV4BKjqFjbOYamyy+6x+8441zkotgWHgiVdLul21AogLlRpFws0cwuO/gF4/n TXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CuaBlEfD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i195-20020a636dcc000000b0055acfb661c0si1568656pgc.524.2023.07.18.06.41.48; Tue, 18 Jul 2023 06:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CuaBlEfD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjGRNVK (ORCPT + 99 others); Tue, 18 Jul 2023 09:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbjGRNUz (ORCPT ); Tue, 18 Jul 2023 09:20:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409B9198E; Tue, 18 Jul 2023 06:20:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4F5161574; Tue, 18 Jul 2023 13:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ECE2C433C8; Tue, 18 Jul 2023 13:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689686445; bh=qxHnS2H4SpiZ8oKCK0VuJ2HjGf7X9AuQaK16fBcFmyE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CuaBlEfDAHGjuzmURVPNAW++eLVcsReLEZyJKyx2ZT0bQp3RDvDPE+d2ZL3lRFm4e 40SYzAUsYsWw3Ys0pQG9a7LSwbCckQb/vNrBI89NKjO/ChhRRuXbgLrDMI0D0KJNkv EIKRAqsv2+7F3mD1QqRo4TB1pH3HfIOvGLHfrRXSwVOzEkzSeXiTyJi3LjK0arCvvu fyGBLeaPn8kaw7pzIBjF3luSFnxaEUbK8fOVyW5B9hzuvm4PZpK3lex41W+ThuUHCJ jqfypE7o5RBKUbb69vrN0pa4NtKuo9WWEvq5BkCBhtlgbxQg4TCPUhiiCeuAAWIxfu EEtIhgZ7Ng22g== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qLkdK-0005Wc-1c; Tue, 18 Jul 2023 15:20:54 +0200 Date: Tue, 18 Jul 2023 15:20:54 +0200 From: Johan Hovold To: Konrad Dybcio Cc: Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 03/15] clk: qcom: gcc-sm6375: Unregister critical clocks Message-ID: References: <20230717-topic-branch_aon_cleanup-v1-0-27784d27a4f4@linaro.org> <20230717-topic-branch_aon_cleanup-v1-3-27784d27a4f4@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717-topic-branch_aon_cleanup-v1-3-27784d27a4f4@linaro.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 17, 2023 at 05:19:10PM +0200, Konrad Dybcio wrote: > Some clocks need to be always-on, but we don't really do anything > with them, other than calling enable() once and telling Linux they're > enabled. > > Unregister them to save a couple of bytes and, perhaps more > importantly, allow for runtime suspend of the clock controller device, > as CLK_IS_CRITICAL prevents the latter. But this doesn't sound right. How can you disable a controller which still has clocks enabled? Shouldn't instead these clocks be modelled properly so that they are only enabled when actually needed? Johan