Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1EE0C32772 for ; Tue, 23 Aug 2022 17:39:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 268D110F875; Tue, 23 Aug 2022 17:39:58 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1440110F875; Tue, 23 Aug 2022 17:39:49 +0000 (UTC) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27NGlEB4004228; Tue, 23 Aug 2022 17:39:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=k1NIuwJb8Bc7Jstx4pOkKGt4ZSLf99T5LKLOsvq9sKc=; b=FZH4Opakd7r7/RecenmdCcrOVLn7oDkduBxkHhP06HyhA7XABrpeQHHQZdHYKP0y3pNS //vdHuHkJ6O9r5cYWG7GPDAKuhiD7/qiNDictma4awQhrwFs1OrOYNPj4ASAgsNZPvZT OBezeK8yCeAyATIRpU4kugiQqBzgDxQahGT5Qsh6TGiMSX/mYIxCY2svRYrEgP8fZwhk oGU7dCOMivTAn/VeAprDjxMwCiM7jGM/H8j2iyKhhzrt990qTQaIe+/neBq+WVXaCAqK yAWLnSrahl67hkpCW6OODawWMMl0ClqWJCXGJ+d85sFsJxUSq1hS+8AZXxQUU2zevwhV TQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j52pkr6tj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Aug 2022 17:39:46 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27NHdjKK009904 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Aug 2022 17:39:45 GMT Received: from [10.111.161.24] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 23 Aug 2022 10:39:43 -0700 Message-ID: <3990712a-004e-8cf1-67a6-970c2020dd73@quicinc.com> Date: Tue, 23 Aug 2022 10:39:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH 1/3] drm/msm/hdmi: use devres helper for runtime PM management Content-Language: en-US To: Dmitry Baryshkov , Rob Clark , Sean Paul References: <20220616075947.347888-1-dmitry.baryshkov@linaro.org> <20220616075947.347888-2-dmitry.baryshkov@linaro.org> From: Abhinav Kumar In-Reply-To: <20220616075947.347888-2-dmitry.baryshkov@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: c-bEJgRScnhtIpDOc3xleCkNnNNq051g X-Proofpoint-GUID: c-bEJgRScnhtIpDOc3xleCkNnNNq051g X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-23_07,2022-08-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 suspectscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208230069 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Bjorn Andersson , Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 6/16/2022 12:59 AM, Dmitry Baryshkov wrote: > Use devm_pm_runtime_enable() to enable runtime PM. This way its effect > will be reverted on device unbind/destruction. > > Fixes: 6ed9ed484d04 ("drm/msm/hdmi: Set up runtime PM for HDMI") > Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c > index 6acc17e0efc1..9ff9a68b201b 100644 > --- a/drivers/gpu/drm/msm/hdmi/hdmi.c > +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c > @@ -247,7 +247,7 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev) > if (hdmi->hpd_gpiod) > gpiod_set_consumer_name(hdmi->hpd_gpiod, "HDMI_HPD"); > > - pm_runtime_enable(&pdev->dev); > + devm_pm_runtime_enable(&pdev->dev); > > hdmi->workq = alloc_ordered_workqueue("msm_hdmi", 0); >