Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6835280rwp; Tue, 18 Jul 2023 06:36:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9niWq01+ITtPrHgMQC4VV8LdBexEc3obBVHCxsReIGMy4JUMo1rMdF7IoXTBQ+M3Lm5Wl X-Received: by 2002:a17:906:f1cf:b0:973:fd02:a41f with SMTP id gx15-20020a170906f1cf00b00973fd02a41fmr1942293ejb.40.1689687383734; Tue, 18 Jul 2023 06:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689687383; cv=none; d=google.com; s=arc-20160816; b=lDA4Smt+H4i/MwYhquzUjVWSSep5PkxdtJMguqT6hnNTskyEvlq7Dt23PLV7Lssrkc BL3pD8gacEiGYmWtgFIvy92N0xA99RLOvOptMNwHrXxK+2DPP6EPRxo1qvmSMORtGbZD eNVljdfx9wlv6ZZYsVkqu2YWkMZPGQHKlrS+S53/0E9kUY+26Hsa9h4l6GiUxmnxBgkl exDzNjaqde1s+Ljgs/yXL4lEX+k8aMK55xQwBcjmb8vMeddmiSeXsQB3od8syNziipoY F75nRUqHDlX+UtgOYVw/uR5gcBI6IsoyAf3jP3RAmxbXhXG5IZdl5GVpsltD9AZdz2YA C5jg== 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=mFt5S0K2ggqxu/KSirVvX2VkXv7eu8PhZDuA6ZsTy1I=; fh=tPWqHkSXNpKcNAddf7FP/wUAZtyUVu7X4lL4tcXVkH4=; b=qn25htemopZ1ev68e3uqxJdn35jSjtPOeNAGoQRIgqPeiXOFeV2+ITB9GhDxThr9Pj KAPpPu6mETPwceldOT99bdFrFE704SJ8oryO+MfnlM3LW5KqL1/N1yl36Bw8yKYl1Vrn Lco+tQLLh8oDM6algjOhGitlkoqNw3ZbyIFIb+NwHZcBQCs9fk1YG+lIxtQeZZClRHD7 WksXuVD6iM1ML9zrdYKkFpPvh7LtS46i5K17uBDtrlTKvlk2TXL7MNjtZJWIs7Qi+zO8 SP9W91NmrSUX3YqbfMNL3g0Ab9q+0lEElBVnPMbH9LgZWEq4x0HP10WBgnqGE8tWZ9f/ aSYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DCSqxnny; 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 k26-20020a1709063e1a00b00992b75d594csi1261678eji.317.2023.07.18.06.36.00; Tue, 18 Jul 2023 06:36:23 -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=DCSqxnny; 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 S232527AbjGRN1Q (ORCPT + 99 others); Tue, 18 Jul 2023 09:27:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232169AbjGRN1P (ORCPT ); Tue, 18 Jul 2023 09:27:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96267126; Tue, 18 Jul 2023 06:27:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BFC4361585; Tue, 18 Jul 2023 13:27:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F9BDC433C7; Tue, 18 Jul 2023 13:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689686831; bh=3YW/KjszKYzVW7m/iuNTze8VrSliNp0LOZ9DLIsTcPs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DCSqxnny6+1a6VhvBmCm2zrhNVFk9SfCvq0hRu+itMsvyoPQ7+BzT225O0glNtwNU FguPLhYspRgh2byJdwYrfiArKZI5AOK+XBmQbH2kgb4Nt8nVTZNgg9qdrH9VZLL//9 Bh3TMkDsTIiR1GlihSUCc7xrJRtVtAaaal8vwIwV9x4gRLjcFic1d6rfwS23t5+s9r 0mUo9YFvEkaNMJANkXdLBNjmUKzvhbIxa0RprEoa65gpVT74mjdnRTrIYPA63lWr+5 gOAPt8qrQGekLG9jCcNklkWBtMpQNJK0djZ4UWQwLQSo8955Ktw/99ZkC5bTs2q9lS PewQZCO8AbVgQ== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qLkjY-0005Yk-1Z; Tue, 18 Jul 2023 15:27:20 +0200 Date: Tue, 18 Jul 2023 15:27:20 +0200 From: Johan Hovold To: Konrad Dybcio 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 Subject: Re: [PATCH 04/15] clk: qcom: gcc-sm6375: Add runtime PM Message-ID: References: <20230717-topic-branch_aon_cleanup-v1-0-27784d27a4f4@linaro.org> <20230717-topic-branch_aon_cleanup-v1-4-27784d27a4f4@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717-topic-branch_aon_cleanup-v1-4-27784d27a4f4@linaro.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 17, 2023 at 05:19:11PM +0200, Konrad Dybcio wrote: > The GCC block on SM6375 is powered by the VDD_CX rail. We need to ensure > that it's enabled to prevent unwanted power collapse. This bit is not correct either (and similar throughout the series). > Enable runtime PM to keep the power flowing only when necessary. > > Signed-off-by: Konrad Dybcio > --- > + ret = pm_runtime_resume_and_get(&pdev->dev); > + if (ret) > + return ret; > + > regmap = qcom_cc_map(pdev, &gcc_sm6375_desc); > - if (IS_ERR(regmap)) > + if (IS_ERR(regmap)) { > + pm_runtime_put(&pdev->dev); > return PTR_ERR(regmap); > + } > > ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, ARRAY_SIZE(gcc_dfs_clocks)); > if (ret) Looks like you forgot to update this error path. > @@ -3817,7 +3828,10 @@ static int gcc_sm6375_probe(struct platform_device *pdev) > clk_lucid_pll_configure(&gpll8, regmap, &gpll8_config); > clk_zonda_pll_configure(&gpll9, regmap, &gpll9_config); > > - return qcom_cc_really_probe(pdev, &gcc_sm6375_desc, regmap); > + ret = qcom_cc_really_probe(pdev, &gcc_sm6375_desc, regmap); > + pm_runtime_put(&pdev->dev); > + > + return ret; Johan