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 C9FC5C64ED8 for ; Fri, 24 Feb 2023 21:04:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229684AbjBXVEl (ORCPT ); Fri, 24 Feb 2023 16:04:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjBXVEk (ORCPT ); Fri, 24 Feb 2023 16:04:40 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E445E859 for ; Fri, 24 Feb 2023 13:04:38 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id i9so786709lfc.6 for ; Fri, 24 Feb 2023 13:04:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=Lszs4gFEp6xlpuCdIMDcvdyOaBDChuIXNZLbY3PSN+w=; b=FFoAnd2wFYH55quPctWfE3WOhdtqx4qGcOH/8R1h9cZgLIO1SjNy1jyuHGfYQlqXwg tN4gn4i3zpVfs5LYJOycZm2yEvpjjO1n/ZGofv8WSYllHopEX3oG1l7fs47maVqGiXjJ RoJHLAqO1GPVMKKcqWJE8HGWFB6BFRAt9Q9JNF/DN9aJjU1LxEacVtlp4b4+f8rL6/oT Dte+b48yE5mIl6Xe1KDgQ+VJz/UTJMlspMK7kuJmQMDF2SCVrhixJfHJXKjYsunFXkWI bZzAjlCc4OC+Ra+0Had2ryAVanchi16nbp+qmCZqkTqzM+WDHuKniQ4Ocef9jXZbjwrX 6k+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Lszs4gFEp6xlpuCdIMDcvdyOaBDChuIXNZLbY3PSN+w=; b=ReBj4hk6jzz4I1OExdWTBdxbP5OLGdp4sAvpX88abytJtimRdPCt33NTARV9Qc6rRS yT2kwGzgqpd0IDQtOByNqdGSD7VgLEck1TFvU3E47PmCEi8qk+eM4HEMDgRjvOeEJwTB Adgmcg60++umfVPkaAji9XFHJTjzldD/vu0zPRnS2uRr4KClCDxwsJTQ633l2cJRuRCy ydbKxgyPoFiYYdM5gdDDdT3S7iuRt0WBZtLCt8RSD/0PefGw5dLSUJzOFphncLlLiBYo 2XgIqh3NYw4a+WXRiwnL9YYkYLoJDXP5AJ+nDJPY0VECaSzfe1WhKLKuuq2e6MavFYQL ZIiA== X-Gm-Message-State: AO0yUKX7oyjkQ+QtDu8zHnau52blMYejXeo5ANrQGEF6BH+trC3jomRI BTS1h0WwVw1kI3cjz08z93b82w== X-Google-Smtp-Source: AK7set+jot1Xx+HYRKIm/IB6J0LNgiDMMuzLqDQidL6EC2s5j4GX6oiobb4KkHt+I3bq5PgbJzZ8eg== X-Received: by 2002:a05:6512:147:b0:4db:513b:6ef4 with SMTP id m7-20020a056512014700b004db513b6ef4mr5691421lfo.11.1677272676735; Fri, 24 Feb 2023 13:04:36 -0800 (PST) Received: from [10.10.15.130] ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id j7-20020ac253a7000000b004d86808fd33sm746lfh.15.2023.02.24.13.04.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Feb 2023 13:04:36 -0800 (PST) Message-ID: <525078f5-44be-9a75-a737-ddcc6e097700@linaro.org> Date: Fri, 24 Feb 2023 23:04:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [RFC PATCH 2/2] drm/msm/dsi: use new dpu_dsc_populate_dsc_config() Content-Language: en-GB To: Kuogee Hsieh , dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, andersson@kernel.org Cc: quic_abhinavk@quicinc.com, quic_sbillaka@quicinc.com, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1677267647-28672-1-git-send-email-quic_khsieh@quicinc.com> <1677267647-28672-3-git-send-email-quic_khsieh@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1677267647-28672-3-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/02/2023 21:40, Kuogee Hsieh wrote: > use new introduced dpu_dsc_populate_dsc_config() to calculate > and populate drm_dsc_info instead of hard code value. DPU is an optional component, so DSI driver should not depend on the DPU driver. > > 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