Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4899560rdh; Wed, 29 Nov 2023 14:09:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzJrK+7IRHJRsn7iaerV+MoQf+T6JDbIRtKM2t8You06EZdCyUqywUlnRObNcAvNc1UQQo X-Received: by 2002:a17:902:7209:b0:1cf:d650:380a with SMTP id ba9-20020a170902720900b001cfd650380amr9208727plb.13.1701295785801; Wed, 29 Nov 2023 14:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701295785; cv=none; d=google.com; s=arc-20160816; b=OskGVa4M2Y6bEctfcnID7O6vgvTcT8xDH8rjH93oBKlYGDgs5BVINfM6wERJORJ8R+ mgEy88VORKX0nyziZY0kqg12kidQcLAoWX1dGMHdalam0CtC+QTYrjgpcgHJShsZ7Zk3 auT6cRbPTV199cBhATVtISzI7Vm2//m83KeqVIWvOEJw3jpKr0er7twuk0m/5Gt9XhOP Ld2/8RG+n2qWIpsJ+IH2lCk8zKlSmpxMvJKnrQ4orNuU1s/u6FbKeT43r/R+rTe8Ek1o SGv5ItlIbGgpZhK1UBmmqpDmD/FtS8zd/vRvzBohSaRrCl+U0X/XWmdR/OHeUeICDJdw sfUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=8SYJPO3WANXfLrJT96QPXJOyEPmj0+YqiIB6d1PVgyw=; fh=QhSkf6j4Kuhj8Z3jkYmE/9BEd/Ep5JFYAbKE35YeqbM=; b=0dx9h7EwoMCfzfOj6N+xWaSPhv5Jbn6MIHBpO2PgbAB5pAFQPoCdEBMX1cP9SeiQaB WkwT8Ks153fBwyfXWIPjxXmUF/Rl8p/fbsOApvApCGdkVAm1SwsBPkzmg1ymIo/PNQoJ /O1mvbba5Ya0x2gZCYq4uSCXBrHkAQWZM57Gr+RL7tBl0sGxI5shBZrGfQAKWhYdDfTw f69SRoOPhOWyJ7/f8X6PciBkxhEwr0oDMECXrmggNHMQ57XT59g9Vw0KcNvYsblaL9lI P3KNNo9VuYFu+1pcK0scyEej2+/3m24ESQTkCMoplZJrwaIfUTcGiE86+GEd9O2AmMuJ ZyXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uR1+J9eN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n12-20020a1709026a8c00b001c9c89fd36dsi14527941plk.203.2023.11.29.14.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 14:09:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uR1+J9eN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 76F0A80A9D70; Wed, 29 Nov 2023 14:09:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234630AbjK2WJY (ORCPT + 99 others); Wed, 29 Nov 2023 17:09:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbjK2WJW (ORCPT ); Wed, 29 Nov 2023 17:09:22 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 164A7A8 for ; Wed, 29 Nov 2023 14:09:29 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5482df11e73so125212a12.0 for ; Wed, 29 Nov 2023 14:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701295767; x=1701900567; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8SYJPO3WANXfLrJT96QPXJOyEPmj0+YqiIB6d1PVgyw=; b=uR1+J9eN/VdCXJ8T/LaFR9/hBTt/xejL9ACeYf1Pz4XT7GlF9o1B9YXHjasKhHsg6d qma0pOiSXdO7zR96+C2rs4s1MokJWds5IsxrV82b516MFo+o6FBTHB6v0kvCwm+P8gr7 pID8seGi4fyObRIKRPtv9f/efbeW8s7vJp06kw3OzFBKv+TZkdDSts3F5DQF0109O916 U5M+XhuMlmBEl+ftFfFMvMcUaWv102e9tudUwTH3mbgO09yk+y4RM1spNqUYTTLFPHbG Vj8+kmRNgJTF4Xp2C42mNr2vzrOcOS2G/yRyNKSD7NMWEK3uuUAc3FePVazdK5B398ut Lk8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701295767; x=1701900567; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8SYJPO3WANXfLrJT96QPXJOyEPmj0+YqiIB6d1PVgyw=; b=Y2LPAqfjhScJwY40CKuI71x9IvmpYBvyFTCTnq+aIQmyXleVQD0neTwrKIOk0JyHak i9FmPdYvgmr3h17itlre/RM+/119EuZVmxEaCmdAF2/NCPoeYrOdB3sV2cJ0L5HWqWWA /+MJFGhkh+LG2+obby917C0A5aauIt0zfyN+oZh8RTCbgtlQH4pnKbsMVQUoo+J1va7B ZcQEpzVrHZC1MKR35Cf5/LVMTEt84DyetXSy1mCVffD3X+JnpQ79jtvhJxZkwYTalJY+ 4mknYp/TB2/n76hDYlCeX7WmwbHCRoLlaJVRdrvmCMBOl2hKMTTsK/KgXbLR4IFtjSYJ i2NQ== X-Gm-Message-State: AOJu0YyxcmkDzBifC7m55BVpZ9swFR9QgGWAUL1s9IbWcZUTUvU5Pkdi zGZ3n3FKYdbAs+cp9DznXI1P9A== X-Received: by 2002:a50:fb85:0:b0:54a:f1db:c2b3 with SMTP id e5-20020a50fb85000000b0054af1dbc2b3mr14729811edq.0.1701295767566; Wed, 29 Nov 2023 14:09:27 -0800 (PST) Received: from [192.168.209.83] (178235187166.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.166]) by smtp.gmail.com with ESMTPSA id w4-20020a056402268400b0054b2daa6654sm5165986edd.56.2023.11.29.14.09.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Nov 2023 14:09:27 -0800 (PST) Message-ID: <498465c4-ddaf-4a90-be5f-2e3709777e62@linaro.org> Date: Wed, 29 Nov 2023 23:09:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 06/15] clk: qcom: gpucc-sm6115: Unregister critical clocks Content-Language: en-US To: Bryan O'Donoghue , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230717-topic-branch_aon_cleanup-v2-0-2a583460ef26@linaro.org> <20230717-topic-branch_aon_cleanup-v2-6-2a583460ef26@linaro.org> <8318363a-7122-45f4-a42f-3f01b33457eb@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQ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+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <8318363a-7122-45f4-a42f-3f01b33457eb@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 14:09:43 -0800 (PST) On 29.11.2023 22:14, Bryan O'Donoghue wrote: > On 29/11/2023 18:59, 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. >> >> Signed-off-by: Konrad Dybcio >> --- [...] > > OTOH. > > Seems a pity to remove these clocks - generally for the series I mean - from the debug view in /sys/kernel/debug/clk_summary. > > In the ideal case we have pm runtime functional without dropping these clocks from the view in /sys/kernel/debug/clk_summary. > > Certainly I've found that interface useful when launching a real product. It might be confusing to _not_ see the always-on clocks enumerated there. > > --- I have shared the very same concern in the past.. I did also however realize that debugfs is not accurate, especially with funky clocks that need only be enabled once (*even if you gate the e.g. MM subsystem*) and debugcc should be used instead Konrad