From patchwork Fri Feb 24 19:01:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuogee Hsieh X-Patchwork-Id: 13151704 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6493C6FA8E for ; Fri, 24 Feb 2023 19:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjBXTBz (ORCPT ); Fri, 24 Feb 2023 14:01:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbjBXTBt (ORCPT ); Fri, 24 Feb 2023 14:01:49 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0992F1B2D2; Fri, 24 Feb 2023 11:01:47 -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 31OIBa2Q005341; Fri, 24 Feb 2023 19:01:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=piuuc2wyWBVCiJ95WfQWMKtEKTQoo3gZy+3qcnD1EOU=; b=hvCpaE1fXHckVZaIQ7v7336sj0hG9OvOYaI6JrPkuRJTl8WL73hUlM8dlTNyQN+XJ86g LCQjV1DsfbXId4t648c1ViGKrSEkNLeuDjHRsV3m6uMo+gcMjR4nh7ugc8xoEjHHaqQ8 z1jsCfWZ8DUcwnCZUuBlQGdl/T2/aW4awm07+Q9nR/tw2DJ0pg+vpgoaU66zGjxB8VBo Y+Wy8E1euWzS6iyqrjMHd5fMOgZ2OSFhIVNlKg6GQG2xhfMPsmJl3sMpQVOQxTN159L7 TLe0Q9ypgIrvQXjv1ZptfukghtV5SrPcYvPgbFSCY53O8dOe0OfTsaYDkuKJSPBlap3U tA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ny05mrk41-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Feb 2023 19:01:40 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31OJ1eM7004179 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Feb 2023 19:01:40 GMT Received: from khsieh-linux1.qualcomm.com (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.41; Fri, 24 Feb 2023 11:01:39 -0800 From: Kuogee Hsieh To: , , , , , , , , , , CC: Kuogee Hsieh , , , , , Subject: [PATCH v1 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config() Date: Fri, 24 Feb 2023 11:01:27 -0800 Message-ID: <1677265287-7765-3-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1677265287-7765-1-git-send-email-quic_khsieh@quicinc.com> References: <1677265287-7765-1-git-send-email-quic_khsieh@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: jwdPOz1m8JSMxdO8fv0NnYphax4qE1zv X-Proofpoint-ORIG-GUID: jwdPOz1m8JSMxdO8fv0NnYphax4qE1zv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-24_14,2023-02-24_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 bulkscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 mlxscore=0 spamscore=0 impostorscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302240151 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org use new introduced dpu_dsc_populate_dsc_config() to calculate and populate drm_dsc_info instead of hard code value. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dsi/dsi_host.c | 78 ++++++-------------------------------- 1 file changed, 12 insertions(+), 66 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 31ad193..5f3f84f 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2023. Qualcomm Innovation Center, Inc. All rights reserved */ #include @@ -21,7 +22,6 @@ #include