Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6847869rwp; Tue, 18 Jul 2023 06:46:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHuXhxmrKv4E3l+mOUSbJj3vNYsYRAHqyCpfI+H7vXwxhkhddrg38QehNxJqQT7Bj3IOohG X-Received: by 2002:a05:6a20:3c8b:b0:134:87c3:7a73 with SMTP id b11-20020a056a203c8b00b0013487c37a73mr7108331pzj.5.1689687961459; Tue, 18 Jul 2023 06:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689687961; cv=none; d=google.com; s=arc-20160816; b=Xof33zSfKwhnIugbHYKM0PigxbETgugAJrAdqNMtezW2o39C3/h6EWc7zzVEcQMn1T BlwTnrOH5aUPJcmsW3IbdYbN7tYE0sDfHWQt+lfNEyF8yLl7eJlG/cFfVfOLGbuQIQK1 BF+QVGY0k4RshT+9x9VdzLoGVLmMoURDMyZ+GJypaucW5Nq0vygkG1N9fER6nFY6EkXP 5xiIKJSflsMEoNWwxTiwpKqtzLbOn8/2F7n4wvIQ5T5GIeu0w56QkkJG7QZOvOtTCwJv iTMJSppM/Z1/fLxNEoiGxe93EJpFaCOq5eJbp/Ff9PZjT3JjfEkYL0Q1qTRwymCf1wtJ AFdQ== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=X351sQi39be8sn4PlHccv90k4MIZd0LiXL0VSGtBHBY=; fh=8XALnrQ0B5MssvYbnHJ4hnrW0l/h3EmJ5/EKPZF6/Zs=; b=mBZgqC6y0Jf5zXHCOaPEDuPHuVp0qxIGJNBmeXChoPC8SLApalBiZ08qHrs+E4Scfc XqUdrpAR8W/zS98zw+lkTSO7BOXm7Q/+CboVst5wSALJ8cw3WfC3xUitHkSq7EFtomKi K8Unr79IsJyHRQ4HdJCUf2YI4YyrOJPvdpmJ6laknOTwvGwO/tg+ajdI+5yiCqyYLQJn WUlyKegM5UFBvEUceEFmjwhN/mbAyzO19wmQbsZ88YKyYEeo7rkI/LusGXw6doOKqtPu Sd345Zbn3PdvL9xK6Kuw27T2U9JPvAfiXGyB7hJTDLVshGrGQ9bnn1YvW12XLSZdZmYY 69GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=adJhQH40; 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 r29-20020a638f5d000000b00560132689ccsi1610318pgn.349.2023.07.18.06.45.48; Tue, 18 Jul 2023 06:46: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=@linaro.org header.s=google header.b=adJhQH40; 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 S232108AbjGRN1A (ORCPT + 99 others); Tue, 18 Jul 2023 09:27:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232152AbjGRN05 (ORCPT ); Tue, 18 Jul 2023 09:26:57 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321B4115 for ; Tue, 18 Jul 2023 06:26:55 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b6f0508f54so85989791fa.3 for ; Tue, 18 Jul 2023 06:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689686813; x=1692278813; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=X351sQi39be8sn4PlHccv90k4MIZd0LiXL0VSGtBHBY=; b=adJhQH40wflwylgBTMYmEPSJkmIONKLfo15lmAlYJzmuhVeO4CyqoC7B1qW4LV40k/ HDjLi4LR75pWs+6h0Pd3dpPXgdSmzIZL7ak28XNUiOPLzuAZcOaupsUP4hDLM+HfI1o7 umfVNXKZ/mxWdCQs0Vo1TLURs0AVTkSQ+YqVfVTuyzLiMHhcPcqQ3mQ75eAYPEjp6Tdu 3mPgp8KcKhJlDZvqNEdQa+mgSr/ztCj2HyZpZKhm3fRecUPRRp5cQwEVBsm+14N78GBh 3par62gIFQHgmwOfCEB1UmaV1B660TOxPrFDMOwYFVrqnedANBjVoOk0Yv35wcjrjha9 YcHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689686813; x=1692278813; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X351sQi39be8sn4PlHccv90k4MIZd0LiXL0VSGtBHBY=; b=gg/q6tPCRH5nhwZAxAeVutojReXnz5rlty0POzuR3cgs6AIsJDRyM9V6znNWZPuEVI 5i0MngPF1+OOnkD/IGA3+DGdmmnlaFOpm+p0/JwDEU7EhFdwQ4hJvv/RoCW53klJTC8p p1HKN/c5LOdnLoXcZv7k4T44ihDqOsOb0hXwZERlU+ZG37r8tjjUDX1U7StqcaTWD6XP xBijjayHQjXtASho8RQlF1G5ZyryFvQ/rr3MWg31UBBxfUVCjA+DoxnmYEq86WeycClk xs569xSb5B60VT4wmVq94xw9Lse9qcec301AZS7himydIHf4tOMSxa0U9kWRpvqN3P4H yQiw== X-Gm-Message-State: ABy/qLZHrpBQ5ZtIpTtnA5oKWQNZoBP57KBs/X4VmO2SIwAwFxf2fO7+ zsDNOSinTuP5JyqnK+LyvRKsrQ== X-Received: by 2002:a2e:3315:0:b0:2b6:f1ad:d535 with SMTP id d21-20020a2e3315000000b002b6f1add535mr10337890ljc.14.1689686813365; Tue, 18 Jul 2023 06:26:53 -0700 (PDT) Received: from [192.168.1.101] (abyj181.neoplus.adsl.tpnet.pl. [83.9.29.181]) by smtp.gmail.com with ESMTPSA id s7-20020a2e98c7000000b002b840f283a7sm494752ljj.36.2023.07.18.06.26.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 06:26:53 -0700 (PDT) Message-ID: <33a26241-026a-9466-5dd6-e3202b29f57c@linaro.org> Date: Tue, 18 Jul 2023 15:26:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Johan Hovold 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 References: <20230717-topic-branch_aon_cleanup-v1-0-27784d27a4f4@linaro.org> <20230717-topic-branch_aon_cleanup-v1-3-27784d27a4f4@linaro.org> From: Konrad Dybcio Subject: Re: [PATCH 03/15] clk: qcom: gcc-sm6375: Unregister critical clocks In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 18.07.2023 15:20, Johan Hovold wrote: > 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? Hm.. We do have clk_branch2_aon_ops, but something still needs to toggle these clocks. I *think* we could leave a permanent vote in probe() without breaking runtime pm! I'll give it a spin bit later.. Konrad