[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAA8EJprvE31ex3fCQHZ-=x+EWHK4UZ0qqHRh+rH4dk5TPhmVyw@mail.gmail.com>
Date: Thu, 31 Mar 2022 01:08:02 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Sankeerth Billakanti <quic_sbillaka@...cinc.com>
Cc: dri-devel@...ts.freedesktop.org, linux-arm-msm@...r.kernel.org,
freedreno@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, robdclark@...il.com,
seanpaul@...omium.org, swboyd@...omium.org,
quic_kalyant@...cinc.com, quic_abhinavk@...cinc.com,
dianders@...omium.org, quic_khsieh@...cinc.com,
bjorn.andersson@...aro.org, sean@...rly.run, airlied@...ux.ie,
daniel@...ll.ch, quic_vproddut@...cinc.com,
quic_aravindh@...cinc.com
Subject: Re: [PATCH v6 8/8] drm/msm/dp: Handle eDP mode_valid differently from dp
On Wed, 30 Mar 2022 at 19:04, Sankeerth Billakanti
<quic_sbillaka@...cinc.com> wrote:
>
> The panel-edp driver modes needs to be validated differently from DP
> because the link capabilities are not available for EDP by that time.
>
> Signed-off-by: Sankeerth Billakanti <quic_sbillaka@...cinc.com>
This should not be necessary after
https://patchwork.freedesktop.org/patch/479261/?series=101682&rev=1.
Could you please check?
> ---
> drivers/gpu/drm/msm/dp/dp_display.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c
> index 8bafdd0..f9c7d9a 100644
> --- a/drivers/gpu/drm/msm/dp/dp_display.c
> +++ b/drivers/gpu/drm/msm/dp/dp_display.c
> @@ -1003,6 +1003,12 @@ enum drm_mode_status dp_bridge_mode_valid(struct drm_bridge *bridge,
> return -EINVAL;
> }
>
> + if (dp->connector_type == DRM_MODE_CONNECTOR_eDP) {
> + if (mode_pclk_khz > DP_MAX_PIXEL_CLK_KHZ)
> + return MODE_CLOCK_HIGH;
> + return MODE_OK;
> + }
> +
> if ((dp->max_pclk_khz <= 0) ||
> (dp->max_pclk_khz > DP_MAX_PIXEL_CLK_KHZ) ||
> (mode->clock > dp->max_pclk_khz))
> --
> 2.7.4
>
--
With best wishes
Dmitry
Powered by blists - more mailing lists