Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33727718rwd; Sat, 8 Jul 2023 19:57:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlGeutJO/4Aw8V5OxQLUhIThUhBCKpHdCVZ4FQcYIS5U8R/CR9c2FexgsJwyePHsxAl0nq1B X-Received: by 2002:a17:907:9505:b0:969:faf3:7dba with SMTP id ew5-20020a170907950500b00969faf37dbamr7041459ejc.52.1688871467565; Sat, 08 Jul 2023 19:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688871467; cv=none; d=google.com; s=arc-20160816; b=fFQfn8fd31Cv5VFSahfSPNNJ0OFrMbApz6XqtKZCbxSeyxqhqa885F3GQCyrUMvnHg id7+Bgk4Dpu3C4ecLehyrRQZ/EGVL+BV/6K3mR8f9jOXRfpMbk7LFdveAP1OkUkUHd7V PO8GEkEK6dpszOk0KapW+0sFqsM9FtUDi0O7tYjFRmezfqV4X0bL7w3lZ8wfO4MiY2mn Rm1EZrbn1koqyI3RuEag7WJ0G9lyHguF8RwtUiXU2LyzLYlTpxN0NJthLbdd8Xdb2/F6 OhDR4fN2TlV7I/UCX/Picj/rodsEYjJG/DAwoCsdHEtod4D+biChLifxKcMyYQMWNS97 81nA== 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=/WdrK4FIzbGk+3VsC2N9en1JkgpMEFwc9MUHmv11H6M=; fh=KZj18XfGdA2sAS5YQJDeIJOmk9OHAOTliDMG9MSiN/o=; b=fPifBesiqzxkFGTxxgQAIoDr+imLqlRdtLyCgW4dHYv1WKoHuWK16oza1x4Xp6xSP7 va/LEy5WMl0ADyp/Cl/vifx1Ufbe9S2vAT0dv4fUAkUL/ICRO8mWGhAxeWFSWbm0SRF/ Vkk2EdIGpJ3gESQrAhATGSv55Uua63Ww6zTq3wleYz3+JIS+dn3/xGU6KH9+byjjswdy nvOTYdxYzw5CmIHr4Y1dWLKMd1IdzchKj8MxBqgopaIND3reQ0vZb8H+r1sDs9EhQii5 eUot3KHCzsdfEViFG9DrWho1z+9vHnt0nPGptnSqLoC3U4Sr7wQFtw1FS5nzxRx7XUjC tnnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rljtrtr6; 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 n6-20020a170906378600b0097894b128f6si4827222ejc.840.2023.07.08.19.57.24; Sat, 08 Jul 2023 19:57:47 -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=rljtrtr6; 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 S229751AbjGICac (ORCPT + 99 others); Sat, 8 Jul 2023 22:30:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjGICaa (ORCPT ); Sat, 8 Jul 2023 22:30:30 -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 B4482D3; Sat, 8 Jul 2023 19:30:29 -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 4718960B33; Sun, 9 Jul 2023 02:30:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 512C8C433C7; Sun, 9 Jul 2023 02:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688869828; bh=ItIXstYBIf26ydCVUwNTGQ8bzQETS0wWyOugToWg6xI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rljtrtr6N1Xg7x+eEkOzkkjBTpfqiPR4gddlslCXE5hpN5FsiP7h8xeap44eWqx7D jzIcl1iLR7Li9APPIOpJX3KG/0FcUGDM+/TbcejzQVXKJpZpkkyfbzC+CnHsWC15pK LWqkJMdMOi4wX/qzJY6ZrnGjE8x57EyFcHyWYvJeRrgZLbveMHDhpwIKIhnCaL9p9X F+HoGbug16qmmnB/iPxbKnCwEjJGtHnZtuc7EV35Aj8uBpNd548gdqyVa4OJICoGGf V8y4mEfYhbSEaRcPCYy4LzXJbnUeZeHAHEByytT01QrAm5S0EsSKac3C2bW0KJMnJZ ShuMY4wtatn+g== Date: Sat, 8 Jul 2023 19:34:05 -0700 From: Bjorn Andersson To: Kuogee Hsieh Cc: dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, dmitry.baryshkov@linaro.org, quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, quic_sbillaka@quicinc.com, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/5] drm/msm/dp: remove pm_runtime_xxx() from dp_power.c Message-ID: References: <1688773943-3887-1-git-send-email-quic_khsieh@quicinc.com> <1688773943-3887-2-git-send-email-quic_khsieh@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1688773943-3887-2-git-send-email-quic_khsieh@quicinc.com> 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 Fri, Jul 07, 2023 at 04:52:19PM -0700, Kuogee Hsieh wrote: > Since both pm_runtime_resume() and pm_runtime_suspend() are not > populated at dp_pm_ops. Those pm_runtime_get/put() functions within > dp_power.c will not have any effects in addition to increase/decrease > power counter. Also pm_runtime_xxx() should be executed at top > layer. > Getting/putting the runtime PM state affects the vote for the GDSC. So I would suggest that you move this after patch 2, to not create a gap in the git history of lacking GDSC votes. Regards, Bjorn > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/dp/dp_power.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_power.c b/drivers/gpu/drm/msm/dp/dp_power.c > index 5cb84ca..ed2f62a 100644 > --- a/drivers/gpu/drm/msm/dp/dp_power.c > +++ b/drivers/gpu/drm/msm/dp/dp_power.c > @@ -152,8 +152,6 @@ int dp_power_client_init(struct dp_power *dp_power) > > power = container_of(dp_power, struct dp_power_private, dp_power); > > - pm_runtime_enable(power->dev); > - > return dp_power_clk_init(power); > } > > @@ -162,8 +160,6 @@ void dp_power_client_deinit(struct dp_power *dp_power) > struct dp_power_private *power; > > power = container_of(dp_power, struct dp_power_private, dp_power); > - > - pm_runtime_disable(power->dev); > } > > int dp_power_init(struct dp_power *dp_power) > @@ -173,11 +169,7 @@ int dp_power_init(struct dp_power *dp_power) > > power = container_of(dp_power, struct dp_power_private, dp_power); > > - pm_runtime_get_sync(power->dev); > - > rc = dp_power_clk_enable(dp_power, DP_CORE_PM, true); > - if (rc) > - pm_runtime_put_sync(power->dev); > > return rc; > } > @@ -189,7 +181,6 @@ int dp_power_deinit(struct dp_power *dp_power) > power = container_of(dp_power, struct dp_power_private, dp_power); > > dp_power_clk_enable(dp_power, DP_CORE_PM, false); > - pm_runtime_put_sync(power->dev); > return 0; > } > > -- > 2.7.4 >