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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFC6BC25B06 for ; Thu, 4 Aug 2022 16:56:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234395AbiHDQ4Q (ORCPT ); Thu, 4 Aug 2022 12:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233703AbiHDQ4P (ORCPT ); Thu, 4 Aug 2022 12:56:15 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F58C140BC for ; Thu, 4 Aug 2022 09:56:13 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id a89so419340edf.5 for ; Thu, 04 Aug 2022 09:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9RAxd8vXCg6ebH7MqJTjtNEjn+NCrIjJbPyy/864Rdw=; b=SgnT3/z7wOSRxmSgBsg2dLV8AI+Yk7NQTu0NY5LahlFhImWUqUw5E7Z7WnrfRXd/XG j9QLj2tmr3MqrmL3EboqUn2ci+T4jLGjO3rmcP7CJ+ZmIg+gYe38yJHxcI2K9hZ42XuW QHerwQ3wkF0tG2HuvqyFd7YawhKRJIMyLkJFjKZEqdwDTG7Br2VV6ZEhWT9ueGQjOgpp O9PEcaDo3atSqwuw+u7N5ztcTrzocGJP+tL/MvNcsovqbZ6cWA0Zw6ZjqaohYCxnexvd sKh2Sv8bi8FEv0LujC74uY8lfptluR76fuy+hYbM9+igE89s8b6fVN4Y2z86G0/uFmca dd8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9RAxd8vXCg6ebH7MqJTjtNEjn+NCrIjJbPyy/864Rdw=; b=H403bIIp6tOvRGbyb1bqliBVRyJUL73GOuYVe/o7FmSeCH6jJZdh4d79/l8aRi7fd2 CNwFL3IYiRiizs28NbF/SVQGfEmqKy5ukGvjt7RtkquWZn413a4dJde6ik7xswhhxK7V g9cdYqOqDR19HuDSon1xDG1NJ5QwX2aBGvZkHxHyXQWuyANFMly1BVghdJApojkq/OYt O9Aj5qgp1zFlZRHtHo/xCw/6zV9FPsyCARARwZRuM+5/wVCn198+p0p+7pBEFOpacIHI 67xsffaG/fegAK7ZgdkqXPgjWdg14YKvJT5J8SBmI2zrunAbevDzWj0c4J+DRztpHiI2 8IXA== X-Gm-Message-State: ACgBeo0pvFpI+CxilmUMOq9OTh1gEznUqeoSauotylkSR38n6pUDIQlU 6oOWXKglxym3eo7i80AcritV0w== X-Google-Smtp-Source: AA6agR4vqzFgi3ZOFoI9pHyekMbM4zYfttqGHcixJ/EQsRgF4Gxfs6K/naNbKjK6+z7G/bzY5AzqjA== X-Received: by 2002:a05:6402:888:b0:43c:fce0:2f0e with SMTP id e8-20020a056402088800b0043cfce02f0emr2907897edy.247.1659632172064; Thu, 04 Aug 2022 09:56:12 -0700 (PDT) Received: from linaro.org ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id bq7-20020a170906d0c700b0072f1d8e7301sm532588ejb.66.2022.08.04.09.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 09:56:11 -0700 (PDT) Date: Thu, 4 Aug 2022 19:56:09 +0300 From: Abel Vesa To: Dmitry Baryshkov , Rajendra Nayak Cc: Bjorn Andersson , Andy Gross , Konrad Dybcio , Mike Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [RFC] clk: qcom: common: Detach the power domain at the end of probe Message-ID: <20220804165609.hbrcylpayu4ypsbt@linaro.org> References: <20220804103456.3176943-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 22-08-04 17:37:48, Dmitry Baryshkov wrote: > On Thu, 4 Aug 2022 at 13:35, Abel Vesa wrote: > > > > None of the CCs actually need the PD attached to their device, > > but rather some GDSCs registered by those CCs need that PD as a parent > > in order to propagate power gating and the performance state. > > > > So lets detach the PD from the CC right at the end of probe, after > > everything has been successfully set up. > > Would it still be possible to read the clock registers if we detach > the device from the domain? > I think it was the original issue behind putting the dispcc/videocc > into the MMCX domain: to be able to poke into the clock registers, > which are gated by the MMCX. +Rajendra OK, so I might be wrong here, so I'll need to double check. But, AFAICT, today, most of the CCs devicetree nodes do not have a power-domain property. So I assuming the PD is never really needed for register access by the CC itself, but its only use is to be set as parent to those GDSCs that do not have specified a different parent. Again, I need to double check. > > > > Signed-off-by: Abel Vesa > > > -- > With best wishes > Dmitry