From patchwork Fri Dec 1 09:50:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satya Priya Kakitapalli X-Patchwork-Id: 172382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1001420vqy; Fri, 1 Dec 2023 01:51:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOtD3H/xd29GSe73r/cGt+oQeXrMjahOv9Xe989/khhKGBYqpSuAWPIzhjXjW2lhC3l9v0 X-Received: by 2002:a05:6a20:7f98:b0:188:290d:17dc with SMTP id d24-20020a056a207f9800b00188290d17dcmr26646469pzj.60.1701424311115; Fri, 01 Dec 2023 01:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701424311; cv=none; d=google.com; s=arc-20160816; b=xXGVm8nZN+RcQRGu3J/xp2q4w+6kMuClylMDbkHc22x6nPY9OL6McYGmDJvMXpdyY7 Qz0bG38tMPtz9JzALIwEW8qEpuellDo/KynwtDgczr8Lxx63gXupyHJR3WJlebuFptlE 8nbYSt2XVnOfILruarwQCxriXtwZrgbWUnVHbqTdBAcksI+jti34f760gXLxSj6ve1yn 3RqNWRV+ewlQ5UmO6PsytnjN8/QtfBORhZZGci+VWQWLjVgRX1p9iBNE7PDid8y6oDPF 5Fw0e4VZFkeUyINa21qyt2IhzjFMeF7jxM00TcHqUu8DeUrkmB0QdE7lMVUPIV+ZYb3k grVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=0XpIwtT1OoUo3GQJU24TdpwDyWTq1C+Ah5lfk+OxrXM=; fh=H9pxDGjm3NUs2Bf/gRpfds1vgCLX3IdJG7iv83qexBc=; b=xVRB3I25oEKhBWtnhS71qsbIZp0GLVrvzPE/m9CfQqy9FWM/v2KTmj7upFfLuJrWuw OkPTGxQNp2/g20AaOVkGcIiftrB2hoZi46hClkCoBeim3O2AtHTBsdMGVmbDNrQYYhLD cILXTgi1kDE3os0hCOXBDdKU/gpf5sFKkqW9965lsFqiNYO7grqdYow9LLEuETaWrmE8 4j+Jz9LeGfb6PVg1PHtFRR2s1h9bg/19gtVRcChwfMqgf50Mjdyur6O6+66Fc4RAk3qr 4BC3IFUif/jc09mGrwSWRPDR+gKKABo+CCAZ5Z8mNcMLXsNVHR/yrdEIVYqDbgnCNGDH /0Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VPJ2Fu4Q; 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=quicinc.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ss11-20020a17090b2ecb00b002860a91eba1si3445839pjb.117.2023.12.01.01.51.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:51:51 -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=@quicinc.com header.s=qcppdkim1 header.b=VPJ2Fu4Q; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E66ED807ED99; Fri, 1 Dec 2023 01:50:53 -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 S1378097AbjLAJuk (ORCPT + 99 others); Fri, 1 Dec 2023 04:50:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377899AbjLAJui (ORCPT ); Fri, 1 Dec 2023 04:50:38 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 219ACE6; Fri, 1 Dec 2023 01:50:45 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B19VLlW024036; Fri, 1 Dec 2023 09:50:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=0XpIwtT1OoUo3GQJU24TdpwDyWTq1C+Ah5lfk+OxrXM=; b=VPJ2Fu4Qf1LY5B6vy4CHiWYP+nkUFciBq3+/tPAu3bhJ7vj47UW9erckZuXM2KqrQSFH VHYax+adgAW8VE+j56xffLe95lk9/MP8GWXmRBj3f5fqfo2UtRCGdk1i5PeWyXZ6vKO/ E+1ZnfUh8WwMJpplCcHzC815qp7F6HzjSClij6hnWvhRK0Md9K1dJS3DS2kqm8GphMLC /ZgoYmBmNqJ1FlHlOLsY0vt6zZ7rDhTz6+pkuYM/ASvRa1ruNAwrNe4mzHoqp9QZ5aKI WiyujRKZzDzWI7oTvvqQE0GMI99uDrOChN2OSK7luYnmpD7R0D/fTYlRSbpfNVgd+WvT 7A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uq6dkrtqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 09:50:40 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B19odqD006034 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 09:50:39 GMT Received: from hu-skakitap-hyd.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Dec 2023 01:50:35 -0800 From: Satya Priya Kakitapalli Date: Fri, 1 Dec 2023 15:20:24 +0530 Subject: [PATCH v3 1/4] dt-bindings: clock: Update the videocc resets for sm8150 MIME-Version: 1.0 Message-ID: <20231201-videocc-8150-v3-1-56bec3a5e443@quicinc.com> References: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> In-Reply-To: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Marek CC: Bryan O'Donoghue , , , , , "Satya Priya Kakitapalli" , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ztzdamBvwDe9bNMiL_rThMKe36H3EeC_ X-Proofpoint-GUID: ztzdamBvwDe9bNMiL_rThMKe36H3EeC_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-01_07,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 adultscore=0 impostorscore=0 mlxscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=576 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010065 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:50:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784072698408753919 X-GMAIL-MSGID: 1784072698408753919 Add all the available resets for the video clock controller on sm8150. Signed-off-by: Satya Priya Kakitapalli Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/qcom,videocc-sm8150.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/qcom,videocc-sm8150.h b/include/dt-bindings/clock/qcom,videocc-sm8150.h index e24ee840cfdb..c557b78dc572 100644 --- a/include/dt-bindings/clock/qcom,videocc-sm8150.h +++ b/include/dt-bindings/clock/qcom,videocc-sm8150.h @@ -16,6 +16,10 @@ /* VIDEO_CC Resets */ #define VIDEO_CC_MVSC_CORE_CLK_BCR 0 +#define VIDEO_CC_INTERFACE_BCR 1 +#define VIDEO_CC_MVS0_BCR 2 +#define VIDEO_CC_MVS1_BCR 3 +#define VIDEO_CC_MVSC_BCR 4 /* VIDEO_CC GDSCRs */ #define VENUS_GDSC 0 From patchwork Fri Dec 1 09:50:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satya Priya Kakitapalli X-Patchwork-Id: 172385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1001479vqy; Fri, 1 Dec 2023 01:51:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIjKcwmqWAUx6HJ0GvJtnzc+wvqGuQuTdCARwV+Ji+Yu0JKe8mFCqPl8UVBMsC2YYGi8KR X-Received: by 2002:a05:6a21:6d9f:b0:187:4fd9:b9bc with SMTP id wl31-20020a056a216d9f00b001874fd9b9bcmr29760888pzb.34.1701424319292; Fri, 01 Dec 2023 01:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701424319; cv=none; d=google.com; s=arc-20160816; b=M6fDTyLpE22ydUoCIe3h2yvuzmfwnDY/xD2rfS815S3fiFjNoDwo/heWw2P4bXwg6E CiN3of1a3znPt3jwH9uyZbUGSKQdCZkC5n2dq3IsCgXLcWfXfafQT2bTx/4bodyACL/u K1VJ51DfMC5eOFQVJePPsmj+maKD6iSq5NOtjZvbAOu++xcBfwBUExlRJnmQB65F0v7e jnDHOpzzMNmKwRykpPBtKEVzNDTC925F/smx8eHeGq3W3Krc+VWk8vzTp4ERL4DOBseS CfQKR+xdh+bThWZU9ZIlmTFj0HELzN1gAWz54oJiYmb0K4mPQB4fVDN3DOEeKisWe9cs se7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=SPIqBKwQT+rj6hCXFCxATcboWXlESbduF5xNeOJ+FsY=; fh=cnwJOf1Uoca2PVpqk2fANMCVAtBH9zVvNjEblqlC6CQ=; b=GC1bcSKaSWB5xTa/D4l/roxwwAuQ1cz+PGegY6lp32FH/pL2jHJc3fAOaMdZUv/r3A vYHTuGbYnHeRLQ/FQ7x6huOhUUxRz0Yspe8vO3R8BrndmB4BedSjZmDDwemDx/zec1Xb dWmpe5dIaQlneTHllOXPI9Nr1rChyBFN0g9PiujV0ugDQrnPOVCQw49yuTaq35xgbMvU C32Usmnmutjv7HfCcTu9RA+haF7YfD59ryVLz3YUNb4inB6tZ0bjmEi99Hh9X2arX03V 7bo0qCTpSfanm+hIL8cCSu0I/5baWUGpPO+UCjfZ6eoxaReHevo7nOTY2nT3T/Q96iz4 5vUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RrmSIr8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a4-20020a170902ee8400b001c427a74e31si2904762pld.628.2023.12.01.01.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:51:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RrmSIr8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C4BB4807667D; Fri, 1 Dec 2023 01:50:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378130AbjLAJup (ORCPT + 99 others); Fri, 1 Dec 2023 04:50:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378124AbjLAJum (ORCPT ); Fri, 1 Dec 2023 04:50:42 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 578C7170C; Fri, 1 Dec 2023 01:50:49 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B199rrx026999; Fri, 1 Dec 2023 09:50:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=SPIqBKwQT+rj6hCXFCxATcboWXlESbduF5xNeOJ+FsY=; b=RrmSIr8rGybIvxxDzyGt3OzBcV6nLkwEyyxG3PfaY8LRJDazBfPfJ3l/t01qEtT35lwg l7Iv59dem2wi2VenLNlwDOwdC6j3naLRiwunxsXsL8RYy3hTb0itdTnCNoYnI02yGB4A yzHLTJbcyX6KTf2y1HEC6zjBXxsY9ZSiIeeXZzzMwZFNC5uRm4UpEYnLSYDj772Oblns VXa1m4WCbePevPQCKQF5q5CcHXoCZPlSnXhg+zA5N28Mza273rCxy1ldyoWE8w+CPfFB wEV9KaG84o2M07+Vmf/8j4Fl7BIvdhc20kCUPeCcRhvbdWoGqE8cJj2FxgXqv/43ESsd PA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uqcm683nx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 09:50:44 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B19oieZ006718 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 09:50:44 GMT Received: from hu-skakitap-hyd.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Dec 2023 01:50:39 -0800 From: Satya Priya Kakitapalli Date: Fri, 1 Dec 2023 15:20:25 +0530 Subject: [PATCH v3 2/4] clk: qcom: videocc-sm8150: Update the videocc resets MIME-Version: 1.0 Message-ID: <20231201-videocc-8150-v3-2-56bec3a5e443@quicinc.com> References: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> In-Reply-To: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Marek CC: Bryan O'Donoghue , , , , , "Satya Priya Kakitapalli" X-Mailer: b4 0.12.4 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: V9fIb9wk_rsJfttPRK-Pql_zU1FVe3Hb X-Proofpoint-ORIG-GUID: V9fIb9wk_rsJfttPRK-Pql_zU1FVe3Hb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-01_07,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 impostorscore=0 bulkscore=0 mlxlogscore=999 clxscore=1015 suspectscore=0 spamscore=0 mlxscore=0 priorityscore=1501 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010065 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:50:59 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784072706852968111 X-GMAIL-MSGID: 1784072706852968111 Add all the available resets for the video clock controller on sm8150. Fixes: 5658e8cf1a8a ("clk: qcom: add video clock controller driver for SM8150") Signed-off-by: Satya Priya Kakitapalli Reviewed-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8150.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/videocc-sm8150.c b/drivers/clk/qcom/videocc-sm8150.c index 1afdbe4a249d..6a5f89f53da8 100644 --- a/drivers/clk/qcom/videocc-sm8150.c +++ b/drivers/clk/qcom/videocc-sm8150.c @@ -214,6 +214,10 @@ static const struct regmap_config video_cc_sm8150_regmap_config = { static const struct qcom_reset_map video_cc_sm8150_resets[] = { [VIDEO_CC_MVSC_CORE_CLK_BCR] = { 0x850, 2 }, + [VIDEO_CC_INTERFACE_BCR] = { 0x8f0 }, + [VIDEO_CC_MVS0_BCR] = { 0x870 }, + [VIDEO_CC_MVS1_BCR] = { 0x8b0 }, + [VIDEO_CC_MVSC_BCR] = { 0x810 }, }; static const struct qcom_cc_desc video_cc_sm8150_desc = { From patchwork Fri Dec 1 09:50:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satya Priya Kakitapalli X-Patchwork-Id: 172383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1001445vqy; Fri, 1 Dec 2023 01:51:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcjVUwL3Co0kMhOKb5/2+o7s6Z88fwesyy8qFqrCmg1ePZqdtCNaxbBjcY7hop3Ar1HZAl X-Received: by 2002:a05:6a21:a58a:b0:186:9314:6238 with SMTP id gd10-20020a056a21a58a00b0018693146238mr26594946pzc.47.1701424314878; Fri, 01 Dec 2023 01:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701424314; cv=none; d=google.com; s=arc-20160816; b=fTCYYdAHOIwpdB2cZYP0Q9F56MPCb7HpDaQOc+EgUY6F6P/2N4wPhhkx7hHu/T/bAA bFsGIK+BmDag0kmgqyBsxQNLN6+yAID9lWGVN7EAAdOLO63qrg/NzRUNmScGP63X2368 TgjiI3dFpTbaoL/0LfGMJJ5czEWddfJ2R2Atz6j8BcPmuE3uWm2kkVr09rJGlUBaie/M RqKLmnHC1ZYKBz1Xbn2KI5k/b9BTbcQUCX6gPQ0hEk2JFovbd40RjZF6YRAw2b7zoY8G G4p4iob9a7GlDCR0i5Vsewary2lf2lcpjKqO084evpgoN+7Ef7yQZ3sraHAG+TbWMvuW wiJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Tl8IqY6Kcy0jW57meklkeqwCcOwDWbiHTS215GP0cXc=; fh=cnwJOf1Uoca2PVpqk2fANMCVAtBH9zVvNjEblqlC6CQ=; b=RFfebPypLrf+TNXhoaCCRtaBSjB7jiMzh4BktQFOK4yc/2NvTBNPCZl1gqcF4HPcCQ nADqfhApfqdJsMKHQkGqRdmqvoqaUseMgYlDgVWWfglmxuu5bFEoVE61IDtXnaWJ5F9n siP2uvvI5NIwzVPMqYhQQsU8TVZ1/kjaxuIR/qF8qoB3iuYwFDnc2WyjSGik6B+Xa9Nb oXtROv07HuLCREOSn2gwjg2sQ7lKHNM3JrLKxc10F/yK0Ch4DHh8l1GRcv437PWWh4Bl iiitSOuQC6/K4VuJJEpeZBDD/YgJZK3PkTfVVAZYdqxdg5wHjxPJjFglRRF1GiMQP/s8 k2og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Js6ET2Cq; 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=quicinc.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w3-20020a63c103000000b005c2421e149esi2898915pgf.564.2023.12.01.01.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:51:54 -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=@quicinc.com header.s=qcppdkim1 header.b=Js6ET2Cq; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D54B180FA9CF; Fri, 1 Dec 2023 01:51:00 -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 S1378093AbjLAJus (ORCPT + 99 others); Fri, 1 Dec 2023 04:50:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377899AbjLAJuq (ORCPT ); Fri, 1 Dec 2023 04:50:46 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D9DDE6; Fri, 1 Dec 2023 01:50:53 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B17cmRN008763; Fri, 1 Dec 2023 09:50:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=Tl8IqY6Kcy0jW57meklkeqwCcOwDWbiHTS215GP0cXc=; b=Js6ET2CqaUlQVCdN43TEryUesuBgHzTPp+d3Zb4Sisgg/53Bt7x+D+Q/upBiBiv1k3FP poSprU0DWal7fDPuyRHzZMnb+Oib7pFCxhMCVaIFpYfXk6ihSC+TcmRb3aGNEpw0dTXA LuH3cqXXTAvjT70oAZZ8cuv2znk3LZrqG9niFIOMjGuqb1h1SbMGj6EW5cJJWIkUxtIS pgYXD+mY8PuMNH0k5s2IjPQu7PrUdyrjKJLjzmxclm/58cdQyhkrreMvbHDJmdOuh6By EpX91gjp9PXb06MqvglufFwB4a+aOfsNBL1RRqba7iwcT2u9/sZTzcm1ZFLk+zGVHvxI qA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uq3f7s6dq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 09:50:49 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B19omZW006757 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 09:50:48 GMT Received: from hu-skakitap-hyd.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Dec 2023 01:50:44 -0800 From: Satya Priya Kakitapalli Date: Fri, 1 Dec 2023 15:20:26 +0530 Subject: [PATCH v3 3/4] clk: qcom: videocc-sm8150: Add missing PLL config property MIME-Version: 1.0 Message-ID: <20231201-videocc-8150-v3-3-56bec3a5e443@quicinc.com> References: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> In-Reply-To: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Marek CC: Bryan O'Donoghue , , , , , "Satya Priya Kakitapalli" X-Mailer: b4 0.12.4 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: j5DM2gxt_pYozLFxZlNmB62a4wnILtS4 X-Proofpoint-GUID: j5DM2gxt_pYozLFxZlNmB62a4wnILtS4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-01_07,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 mlxlogscore=983 bulkscore=0 clxscore=1015 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010065 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:51:01 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784072702082896491 X-GMAIL-MSGID: 1784072702082896491 When the driver was ported upstream, PLL test_ctl_hi1 register value was omitted. Add it to ensure the PLLs are fully configured. Fixes: 5658e8cf1a8a ("clk: qcom: add video clock controller driver for SM8150") Signed-off-by: Satya Priya Kakitapalli Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sm8150.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/videocc-sm8150.c b/drivers/clk/qcom/videocc-sm8150.c index 6a5f89f53da8..52a9a453a143 100644 --- a/drivers/clk/qcom/videocc-sm8150.c +++ b/drivers/clk/qcom/videocc-sm8150.c @@ -33,6 +33,7 @@ static struct alpha_pll_config video_pll0_config = { .config_ctl_val = 0x20485699, .config_ctl_hi_val = 0x00002267, .config_ctl_hi1_val = 0x00000024, + .test_ctl_hi1_val = 0x00000020, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000805, .user_ctl_hi1_val = 0x000000D0, From patchwork Fri Dec 1 09:50:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satya Priya Kakitapalli X-Patchwork-Id: 172384 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1001461vqy; Fri, 1 Dec 2023 01:51:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhxy8kDTc1Vo9XTHS9fKQxo1x06W3fnQfRPy2B3PUQH1crdGjUYJkGcCFbsN7Pa9KMHh0r X-Received: by 2002:a17:902:b205:b0:1cf:fc91:e4d0 with SMTP id t5-20020a170902b20500b001cffc91e4d0mr13728581plr.16.1701424316226; Fri, 01 Dec 2023 01:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701424316; cv=none; d=google.com; s=arc-20160816; b=U8x9hPFvcHun0rhGYo184gxMW+h6Y3fU0sArifa77C0Mpid5ruO4RlQeDGDtgJ32nR 3MmvcssUpHNYYLWqWBqA6jKB52dY1x6kqFRncw8Zlzmn0q8qtCkREzWzsWAqq7RjC9SV fiEWPlVikvO7lnoPcc7I0aV2MT4YVJZvA8F2OkjSoPxJGICuYDdVR3rmv8DhyUUzxmib r8qLJalWkdWqBs/oUVfriMQh1w+xM8Kyu/knctKsyeoRUinpL9BuRGW1+mv1fXtHTbcQ MTcRFDNyvL11FFoiesktW1Tt4l9N1S4mONIdTmpNVQT2tTMYEilC9MYpf3wRG1xi0zQF 3OyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=WFLYfX+LyYJ6QVe4Q1/+gTF/6c882WUnjs7t2bRQoBk=; fh=cnwJOf1Uoca2PVpqk2fANMCVAtBH9zVvNjEblqlC6CQ=; b=QumqfHGcutSZ0DeIj+NDsHWg9jqMsBU1XEq9PADkIvRZprXPsTZ4uRS9JQEwVrF/av Kx0zXQE7NNeiofGCMwMPHp4FoDbtQejgvjf3UmOak46HCfWuaexBtF+Q02OSby9yMDLu xeLM7YnA3L5Rufu54oMW2z259D0sTPa1ytbeTY/lBQtd5eSxAYzXac5x4sYQfJLdBpew OBPJ3ysRknWBkpceCFDLQLT/FUkihF5X7cNEe1sNZSoa7ISwsR8x5glZAymMQW0cxiQw DVRvbop0Mu7qkRr95Rs90j5ckMc034+yYuXfULDEaqFTpw0SPYwTa3ADDSqKEYGa9kux wt3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OfX8D6Ol; 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=quicinc.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c17-20020a656751000000b005b9602a7badsi3200663pgu.688.2023.12.01.01.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:51:56 -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=@quicinc.com header.s=qcppdkim1 header.b=OfX8D6Ol; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3D39F80FA9DB; Fri, 1 Dec 2023 01:51:25 -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 S1378130AbjLAJvN (ORCPT + 99 others); Fri, 1 Dec 2023 04:51:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378116AbjLAJvG (ORCPT ); Fri, 1 Dec 2023 04:51:06 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 892CA170D; Fri, 1 Dec 2023 01:51:07 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B19W1Q0015381; Fri, 1 Dec 2023 09:50:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=WFLYfX+LyYJ6QVe4Q1/+gTF/6c882WUnjs7t2bRQoBk=; b=OfX8D6OlKOpwmTpcchUNd82qxQ0eJ1oSfVluSj4xNKcwXuFuA1ogZYm5eTA6b9Y3Ojgc dDXxiQJqU5w+Hn8O6HGF9JDs9hjYv9NTSQQ4MJt53mSWE3VR3vPttlKop4nT3QYej9XJ ya9Iybh7VWIx5dcvgh3s8MV+Gb2nIMXeitgoufUkIJhN8bjajwFB4FWKwYAQaccjHkis +tljn8BWphOx9GelBTJDf4uaqKfsKlozhZ9WvxYfKAeluT17RhT2nV2PgPc0aVTeZflb O8yhGp3pzA0rYYzTHshqqEadxrPzKRgb9htIGQ/j+qIqGaGOuvVjIP/XlDxgkGfNknoc HQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3upw12tbvs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 09:50:54 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B19orfZ006804 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 09:50:53 GMT Received: from hu-skakitap-hyd.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Dec 2023 01:50:48 -0800 From: Satya Priya Kakitapalli Date: Fri, 1 Dec 2023 15:20:27 +0530 Subject: [PATCH v3 4/4] clk: qcom: videocc-sm8150: Add runtime PM support MIME-Version: 1.0 Message-ID: <20231201-videocc-8150-v3-4-56bec3a5e443@quicinc.com> References: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> In-Reply-To: <20231201-videocc-8150-v3-0-56bec3a5e443@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Marek CC: Bryan O'Donoghue , , , , , "Satya Priya Kakitapalli" X-Mailer: b4 0.12.4 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: syiUyzuHoWTiqdwhGtVfh99d6hDaAp-V X-Proofpoint-ORIG-GUID: syiUyzuHoWTiqdwhGtVfh99d6hDaAp-V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-01_07,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 phishscore=0 priorityscore=1501 spamscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010065 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:51:25 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784072703919638067 X-GMAIL-MSGID: 1784072703919638067 Add runtime PM support to ensure the supply rails are enabled when necessary. Signed-off-by: Satya Priya Kakitapalli Reviewed-by: Konrad Dybcio --- 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..f1456eaa87c4 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_sync(&pdev->dev); return PTR_ERR(regmap); + } clk_trion_pll_configure(&video_pll0, regmap, &video_pll0_config); /* Keep VIDEO_CC_XO_CLK ALWAYS-ON */ regmap_update_bits(regmap, 0x984, 0x1, 0x1); - return qcom_cc_really_probe(pdev, &video_cc_sm8150_desc, regmap); + ret = qcom_cc_really_probe(pdev, &video_cc_sm8150_desc, regmap); + + pm_runtime_put_sync(&pdev->dev); + + return ret; } static struct platform_driver video_cc_sm8150_driver = {