From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 852906FC9 for ; Sun, 17 Sep 2023 19:43:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB52FC433C8; Sun, 17 Sep 2023 19:43:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694979836; bh=zRF+DlKPj12GfWW4fgkhwCyoge/oPy/u06Rw8EvpkGc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mhrCcMLZ5Ox/Wu+7IZd9fw5zATiMFK+QAcoadF+2MD41BOiZo5Ppyu5Rrn1SF+MJf /tTdXOby2i4P63laS5JfjwajSfGMGciZuFCJPuGAi/cZOYtg3gVkCUVSUeXuonDf21 FUuuzTeHK9sAMHRkZ9s3M+P/4lcolRLYUcwCYDrw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Stephen Boyd , Johan Hovold , Bjorn Andersson Subject: [PATCH 6.5 021/285] clk: qcom: camcc-sc7180: fix async resume during probe Date: Sun, 17 Sep 2023 21:10:21 +0200 Message-ID: <20230917191052.365617023@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191051.639202302@linuxfoundation.org> References: <20230917191051.639202302@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johan Hovold commit c948ff727e25297f3a703eb5349dd66aabf004e4 upstream. To make sure that the controller is runtime resumed and its power domain is enabled before accessing its registers during probe, the synchronous runtime PM interface must be used. Fixes: 8d4025943e13 ("clk: qcom: camcc-sc7180: Use runtime PM ops instead of clk ones") Cc: stable@vger.kernel.org # 5.11 Cc: Stephen Boyd Signed-off-by: Johan Hovold Link: https://lore.kernel.org/r/20230718132902.21430-2-johan+linaro@kernel.org Signed-off-by: Bjorn Andersson Signed-off-by: Greg Kroah-Hartman --- drivers/clk/qcom/camcc-sc7180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/qcom/camcc-sc7180.c +++ b/drivers/clk/qcom/camcc-sc7180.c @@ -1664,7 +1664,7 @@ static int cam_cc_sc7180_probe(struct pl return ret; } - ret = pm_runtime_get(&pdev->dev); + ret = pm_runtime_resume_and_get(&pdev->dev); if (ret) return ret;