Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2249698rwl; Thu, 6 Apr 2023 07:47:53 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7CDI9MzjWzbDYZ/T32HWj8vaXxeGFUoK1iQ7GqbAkaR4Zp1SHdXGZ+mOycgvFjlWtyQKf X-Received: by 2002:a17:906:c30e:b0:93b:68a8:a0e0 with SMTP id s14-20020a170906c30e00b0093b68a8a0e0mr6902932ejz.16.1680792472854; Thu, 06 Apr 2023 07:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680792472; cv=none; d=google.com; s=arc-20160816; b=RnOHqx98PB3plY0/tBNPYNgIMUkwBSlE1ClmIFduge1LRZjXAHgRPS6eHAK80zBFUl BJE4LA3IDi7Av4HjO9UPnZbytAGi7hmTH4d26SMYzCKIaI6WXMn6KTzAqI4pgADp0vWG zCfLwy9OWiTUwR43rCoQeD86Mrp/b9qU9Hdpe51mAybCBFrwbgI8/ekqkyGaUXip+mbi MgTPLtRJInErBzCFKfvKrJGxW+D/PFqOw8YB+S3j3rFSWaTUTklTnr4aScgLBzZ9UbwQ RcMQnqNEarkaUITyOiaTACOgmLf0Lg3gQoORkMPAYQQwz0+nihe9cU2RlOhYnJGXPc5n 7O/Q== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NEzI51ciZrgIncfhw5bsm8CrnZlchCYmEqfodjJXk5A=; b=kKqkzrIRUET04tR49y6nSyOSjHzDTi6u3WiKa/3BAG2e6QbWivba+NTznyPwmPBbNe dB56e5ZcT7yj3VeJd5SkXAnWnb6Z68qmum55gS7B2AVX4qcT/0L4/1OMvUpR82CiVCTD 5aC3NF2ut/R7tRFVQYMrerqKVxiP8RVuRGN6XJb2a74W4n/RcJBUwDC8OV6z0kPVDBaj Ve2ZatLXszvTR4LA8vPxuDt2PtiQAyQZFoy0aCOZf6puKFffgxVVip/NYWTwnnIgvLMu lkmKRq7AG2g086YsWfrIMl4hMcDRpqciGO1UhUaWuL+l9NK6GIdehw6iKwZzJJ2DaSZ5 8kfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHGsl5pA; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a170906831600b00933407f013esi318967ejx.147.2023.04.06.07.47.26; Thu, 06 Apr 2023 07:47:52 -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=@linaro.org header.s=google header.b=MHGsl5pA; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239442AbjDFOpn (ORCPT + 99 others); Thu, 6 Apr 2023 10:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239208AbjDFOpY (ORCPT ); Thu, 6 Apr 2023 10:45:24 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81BCAF05 for ; Thu, 6 Apr 2023 07:44:32 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id h11so44165342lfu.8 for ; Thu, 06 Apr 2023 07:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680792272; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NEzI51ciZrgIncfhw5bsm8CrnZlchCYmEqfodjJXk5A=; b=MHGsl5pAsYot9e+osKLnMyXGsWxprs2n2YzElSZZv1aoMVEJcw+5DmKy264jhyL0w9 iGMyTkBGY/7zmg5i+l8jGz/O8k86LUS1iqtzTermHmOOaWocancJZj9Wk/ev1vbzosmD lUM4+Re/DHufKHQJXpxJOgrs38hLD8jwTDlp/4ND/0GjqsmraWIBJ/LSCF+QomJllpl2 ZuJ2Du2FMBRCMqkawg21IaCYMTWFHfO83AlTtqnfmhlB25ickb5ziN/oHDXUZOJjJMVS pj7cPkun6F+3bKbsmLyfxP26IxYRU/D8sVaWDCplTUiHFtAcryZArkMlOql/0piopdqF ICwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680792272; h=content-transfer-encoding:in-reply-to: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=NEzI51ciZrgIncfhw5bsm8CrnZlchCYmEqfodjJXk5A=; b=zgMXQeQ2JIi88ZEWKM60Li7TZAX1qy2/Ot03Y27J9tZg1vcMitoCKe+0ZctzN7W2Pq hd5/waqq9oH7a2m6mwWsbGkjoImOb51+hQntMRKao8N7prfsL4q62uM0qgO3jgn2d8E7 xWCSSvdYv/UV2UwQ7THStB+iIEpAji11KO8PteuYv7ji3/VKi9R1KQ+MDBnHhuMIUL+h JC+Hr/0Hq1U5gu5/8lPrisrcnTJ/46zg+z94bxQcFcMHuLomvFwBHDPqJAT1JHJXALWr 2U5EZZQK8G2sPdZecXoluRlOXjeFpecWv9u2+b+0kFyNpJloFuSjK19rBaTjyr6O0Mki tXjQ== X-Gm-Message-State: AAQBX9d8aN+5CnRpY3nxEEWXTNAAaRqQ932uAHVekEqxyWOFgtVmODKU dHqSb795kbsZ29Vvbix4L6A/NQ== X-Received: by 2002:ac2:5dd1:0:b0:4eb:79:fa5 with SMTP id x17-20020ac25dd1000000b004eb00790fa5mr2839908lfq.25.1680792271873; Thu, 06 Apr 2023 07:44:31 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id d7-20020ac25447000000b004eb4357122bsm287925lfn.259.2023.04.06.07.44.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 07:44:31 -0700 (PDT) Message-ID: <2a379401-fe87-9e30-5449-513dd23c52f5@linaro.org> Date: Thu, 6 Apr 2023 16:44:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH RFT v2 01/14] dt-bindings: clock: qcom,rpmcc: Add a way to enable unused clock cleanup Content-Language: en-US To: Stephen Boyd , Rob Herring Cc: Andy Gross , Bjorn Andersson , Michael Turquette , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , devicetree@vger.kernel.org References: <20230303-topic-rpmcc_sleep-v2-0-ae80a325fe94@linaro.org> <20230303-topic-rpmcc_sleep-v2-1-ae80a325fe94@linaro.org> <20230316225803.GA4036689-robh@kernel.org> <62533d5a-f39a-0806-b4d9-932e2af6beef@linaro.org> <5601e0edc19dc03d0fc516f9ffe4d1aa.sboyd@kernel.org> From: Konrad Dybcio In-Reply-To: <5601e0edc19dc03d0fc516f9ffe4d1aa.sboyd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 17.03.2023 19:20, Stephen Boyd wrote: > Quoting Konrad Dybcio (2023-03-16 17:31:34) >> >> On 16.03.2023 23:58, Rob Herring wrote: >>> On Wed, Mar 08, 2023 at 10:35:17PM +0100, Konrad Dybcio wrote: >>>> >>>> + qcom,clk-disable-unused: >>>> + type: boolean >>>> + description: >>>> + Indicates whether unused RPM clocks can be shut down with the common >>>> + unused clock cleanup. Requires a functional interconnect driver. >>> >>> I don't think this should be QCom specific. Come up with something >>> common (which will probably have some debate). >> Generally the opposite (ignoring unused clocks during the cleanup) is >> the thing you need to opt into. >> >> I can however see how (especially with the focus on not breaking things >> for older DTs) somebody else may also decide to only allow them to be >> cleaned up conditionally (by marking the clocks that were enabled earlier >> as enabled in Linux OR not addding clk.flags |= CLK_IGNORE_UNUSED) as we >> do here. >> >> Stephen, Rob, would `clk-disable-unused` be a fitting generic property >> name for that? Should we also think about `clk-ignore-unused` as a >> clock-controller-specific alternative to the CCF-wide clk_ignore_unused >> cmdline? >> > > There are multiple threads on the list about disabling unused clks. > Moving the decision to disable unused clks to a DT property is yet > another approach. I'd rather not do that, because it really isn't > describing the hardware configuration. If anything, I'd expect the > property to be describing which clks are enabled by the firmware and > then leave the decision to disable them because they're unused up to the > software. After some more thinking, I realized that this could be made opt-in simply with driver_data.. WDYT? Konrad