Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp221261rwb; Mon, 26 Sep 2022 11:22:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63lui42n+Q0YQGl/3ZqWsY8sPBdro32pLMRur0GiCaipJEsZccyYoLoMk+GMWrOnOkP1SM X-Received: by 2002:a17:906:8a4a:b0:781:70ab:e7cb with SMTP id gx10-20020a1709068a4a00b0078170abe7cbmr18877259ejc.492.1664216576348; Mon, 26 Sep 2022 11:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664216576; cv=none; d=google.com; s=arc-20160816; b=St1W6hyhk//hLigE+y6FLO5FCkw0ul+1WWrg97JYGay9qbZKBmI2PvXacVxPx0FUqX c96QcDKlSU9i/22kFKkVS/Jj6ggx52O80jSHWr5NE03lFE/aEf/mbtG5o2JM0E+CyVxO S5tyDSloN6TzK/70LfZ41EbuqRoHDcCtmFZStrTJf2MkY7aPra/C4UkB0YSjC1/KJFWD oyhC0dGaGsddq6kPGxB9xmtgyBtDpEntgycqv08GL89lKW2o7GNkXY5AVjzRXtc+2RW3 TSv9HnaeabzOGJrFxiDCOqyxCmsVuJ1hRhNYiMFnJ35un8U6r+GMdlIu1yAkMIf9AbpQ +IEQ== 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=wdFZkVajlDY+j6H/7vQZPpbZsyhcU+8hOAx+JCcMW14=; b=pofMnFYziiJ8e7ABf8OLQSe4NBTIrcvW6yGog1I993KYTTYTz229EfmV47/GycSQi7 x40FAkeR2VtV3Vrpyv/7CM4/WQNHaiqRmw7ueaUma8xUUTeZhrxd8chOsDgb36hwOArf WpJ0LJcya2KMlY+hpMfliKzVeM50pmyqYR7m19XuUnLkOG/gowLuabPInkbNIzCooTxs IUeWL68DVg5hCWOnjoQAqgrAqXmgY4aFzU4XUyQ/vQ0zuUno8c7FyTiax+Mg8RsKxRRy n1Ijz90oIrxMnesqAvZulvT1Wj5WNvkPe6+ZqjoptXEKa1H/YFLPojJBobt6KcSB4WXQ qUZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PFQTPdP8; 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 hp34-20020a1709073e2200b0078391cfc38csi736722ejc.405.2022.09.26.11.22.29; Mon, 26 Sep 2022 11:22:56 -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=PFQTPdP8; 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 S230257AbiIZRNR (ORCPT + 99 others); Mon, 26 Sep 2022 13:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbiIZRMy (ORCPT ); Mon, 26 Sep 2022 13:12:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F211D0D3; Mon, 26 Sep 2022 09:23:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 98F7A60FA8; Mon, 26 Sep 2022 16:23:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46C25C433D6; Mon, 26 Sep 2022 16:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664209407; bh=//h3Ki1Q/jkhX/AuuWyJZHCujymp5Zrs2M2JnYSsksg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PFQTPdP8B3rTVXjFl4MS+gyFAVE4JTmDg1M+th/wGNvD//9ewF67MybYezkcUcLqd ptplidEpnLCJElTPeJj3M+5HDNjoclPh2Ym5eOy4OAh2QR+npPIFqZcqK0hQO6Jvl+ zgNlGpPP+lVdoZzzgW3AqoU1HjQX3wTL23lNmGLEDjafeGvAiFW9BfyFUerozoL93V Vzp8ez5F1fvFijvcESUOwTCRbd29I5NhNhZ1qo7fnbOnHe9pjmep10Cs6YwGdFwZOy OjIv7T8kNoKvuLYIAX6xvL2BX1yEGg/iWrZE6u88b/z806QFTd/Y1ydmNmO/Co5Z3L Ai5KPJj7WfPMg== Date: Mon, 26 Sep 2022 11:23:24 -0500 From: Bjorn Andersson To: Dmitry Baryshkov Cc: Abel Vesa , 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: <20220926162324.xsh4niaxdmh3ao3i@builder.lan> 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: X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, Aug 04, 2022 at 05:37:48PM +0300, 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. > I share the understanding, that on several modern platforms e.g. dispcc was shown to depend on mmcx and the associated gcc abh clock being enabled. @Abel, could you please verify this on 8250/8350/8450? Regards, Bjorn > > > Signed-off-by: Abel Vesa > > > -- > With best wishes > Dmitry