Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp159700rdd; Wed, 22 Nov 2023 12:03:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjN7wO0+juB1LK0zwBJABRs3/iL+LCZICOFOruop/TK0uoyyeJGgMo2H/pGSTjBnHaPmvd X-Received: by 2002:a05:6a00:2d99:b0:6cb:a8dc:26ed with SMTP id fb25-20020a056a002d9900b006cba8dc26edmr4049649pfb.16.1700683421432; Wed, 22 Nov 2023 12:03:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700683421; cv=none; d=google.com; s=arc-20160816; b=W7qrBl17+H1T2GtKEu1LzKDvJgq0UVIta4wKDmzHG78zS4s+lrqGR4d/0vLDBPBZ8I Oq5rDAqUI0YrYXD3DfctaX9ysXw9ew4reMgF0XG5Bsfu6HZ/59RSDgRRKbRtXG05ZjKT UTINZAtVuOsw92L2uKPTxaNCN2+/ysmIufSRKqY+s6s9Kj+oK3y5R9e7gXNE1OjTgoEr +ZrNMG4iwCFGOtfNh91BnP3YVHRsKOlsoLUbYVyfUyO+lQnhOCtMcuR2HqO13qj+QcEv zEz6Adw8jasWb9T837yq2I5IJE4bItVE3P6TmDX+P58XlWc9lEQTBwlL64tl53A07jP1 UsBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=djatJ3Vp6RvGD0vpR/bYiaNyQS4CYn4DKmm7Wr4Zamk=; fh=icZ6wJoRvoO9MMa5RcpkXtKANX1PK9xyAdJ3Ffe74Og=; b=QQz1kiaJsYl4XPvWkLONfw9Cu+JAwwglpesUc3w5DVWzk5sqmhGdrrHhb/Ag8egxrn bTHmtT/3pLvQLQ+qgctUSKSDbuoQ1sLVJx1MBBJujkwNRAvPEFVinCfvCugXI0gKLySa PT8lbxPFGEgToJJsI3zeIEJb2twIUMFuAGLI03d5hgD3rxEMD3iI/JWEkdZoiGP+S8DC ED4cqjwHfqI05Q//xJOfPVoPY+M0hk7yDOcX5eyWN7J7X10IUQewKTpwu8KdUfoav33c Jq4eU7daXdIny5Ni20SJrVrWUjElH1DHtW63dSOY21H0RtFMwIN1oJu5ElUJ22+z2myr LYfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsZxie95; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c19-20020a056a000ad300b006cb6a604979si206802pfl.212.2023.11.22.12.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 12:03:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsZxie95; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 56E0D8218E5B; Wed, 22 Nov 2023 12:02:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbjKVUCG (ORCPT + 99 others); Wed, 22 Nov 2023 15:02:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231693AbjKVUCG (ORCPT ); Wed, 22 Nov 2023 15:02:06 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1659EB2 for ; Wed, 22 Nov 2023 12:02:02 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50aabfa1b75so115622e87.3 for ; Wed, 22 Nov 2023 12:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700683320; x=1701288120; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=djatJ3Vp6RvGD0vpR/bYiaNyQS4CYn4DKmm7Wr4Zamk=; b=DsZxie95JgqIfP2k3qlKyrWeYeKjE64mDmdxovLJJmBV/uRO2AINwuQGwx7O6v7Zp7 jfY4b+sqrRv16GBQj8LpeUL7pjJYcuewllWNpNdkmqOyr9bOOktX7qR+oHq3u6ROvQ7i 9dJhe/7aFclWs0/+9NxKiPahgquPtNCtFTZQixn9BiLr5M4Sr3EAwZiG7ujQwSnRRjZK Eacxhd0JLRvvJ4dfMw6J1YfbpPmNW9F20WZk5tt3uSWf2OUQpf051gReYWdYGPkKm93F SVVBlr5El9R+nEcWNXSWcIbHqH+Y68Q5JT5Y/Xdszi2N2WB6jmsqYkpeKiIQAf4D0Jtu f9ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700683320; x=1701288120; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=djatJ3Vp6RvGD0vpR/bYiaNyQS4CYn4DKmm7Wr4Zamk=; b=UlzoYni9QXpObKX1LX4/4X/jpCkMLre50ajmG4X3NR+cA2LjRswkfIhN++MMWOjnXl /qLKcGRyPZyNtd18cO5gmzomuSc56r6clPT8QGCOhMAR4DtN6tunmJr8B6cY59+WJWKF Q/4noo+NryYFgOiZZ9BBQ3+icThbEse4mtvAbqIdYepDLfHiGdiJwI2UOd/Vj5B0i43x /VlIF2Tjl21fHxs7nS+HuZ9KoaKCyB7KTovvjkvtPIFVq62Xjg/97/Df1RNXba0n8ONn cDLGK3Z9+abyROu+X/nPIoinPaxoxi3I5kSy/szIO7ZguZaFKPx8+0yfhHHM6MGY3YkB JArw== X-Gm-Message-State: AOJu0YwtlrNQvhkOE7WIL+3RTCaO73VEF7eFbbrjWT45xIzfM5LixabV UlT+ed2wgUQbSNMpXmwVI1qY+w== X-Received: by 2002:ac2:5159:0:b0:507:a9e1:5a3b with SMTP id q25-20020ac25159000000b00507a9e15a3bmr2427941lfd.0.1700683320345; Wed, 22 Nov 2023 12:02:00 -0800 (PST) Received: from [172.30.204.74] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id u19-20020a05651220d300b0050300e013f3sm1935876lfr.254.2023.11.22.12.01.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Nov 2023 12:02:00 -0800 (PST) Message-ID: <9710258c-3419-41f2-9b30-f818b031ae5f@linaro.org> Date: Wed, 22 Nov 2023 21:01:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 4/4] clk: qcom: videocc-sm8150: Add runtime PM support Content-Language: en-US To: Satya Priya Kakitapalli , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson , Bryan O'Donoghue References: <20231118123944.2202630-1-quic_skakitap@quicinc.com> <20231118123944.2202630-5-quic_skakitap@quicinc.com> From: Konrad Dybcio In-Reply-To: <20231118123944.2202630-5-quic_skakitap@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 12:02:07 -0800 (PST) On 11/18/23 13:39, Satya Priya Kakitapalli wrote: > Add runtime PM support to ensure the supply rails are enabled > when necessary. > > Signed-off-by: Satya Priya Kakitapalli > --- > Changes since v1: > - None. > > drivers/clk/qcom/videocc-sm8150.c | 20 ++++++++++++++++++-- > 1 file changed, 18 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/qcom/videocc-sm8150.c b/drivers/clk/qcom/videocc-sm8150.c > index 52a9a453a143..b57df5ff96c4 100644 > --- a/drivers/clk/qcom/videocc-sm8150.c > +++ b/drivers/clk/qcom/videocc-sm8150.c > @@ -6,6 +6,7 @@ > #include > #include > #include > +#include > #include > > #include > @@ -240,17 +241,32 @@ MODULE_DEVICE_TABLE(of, video_cc_sm8150_match_table); > static int video_cc_sm8150_probe(struct platform_device *pdev) > { > struct regmap *regmap; > + int ret; > + > + ret = devm_pm_runtime_enable(&pdev->dev); > + if (ret) > + return ret; > + > + ret = pm_runtime_resume_and_get(&pdev->dev); > + if (ret) > + return ret; > > regmap = qcom_cc_map(pdev, &video_cc_sm8150_desc); > - if (IS_ERR(regmap)) > + if (IS_ERR(regmap)) { > + pm_runtime_put(&pdev->dev); Shouldn't this be _sync? Konrad