[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAG3jFyuzjbPsMBOOgc2DBBT92H7FPBNdJLKWHF8+7K10LujMbw@mail.gmail.com>
Date: Thu, 21 Jan 2021 10:50:47 +0100
From: Robert Foss <robert.foss@...aro.org>
To: Neil Armstrong <narmstrong@...libre.com>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
jonas@...boo.se, jernej.skrabec@...l.net,
dri-devel@...ts.freedesktop.org,
linux-kernel <linux-kernel@...r.kernel.org>, a.hajda@...sung.com,
Sam Ravnborg <sam@...nborg.org>
Cc: John Stultz <john.stultz@...aro.org>,
Anibal Limon <anibal.limon@...aro.org>,
Vinod Koul <vkoul@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Peter Collingbourne <pcc@...gle.com>, airlied@...ux.ie,
Daniel Vetter <daniel@...ll.ch>
Subject: Re: [PATCH v2] drm/bridge: lt9611: Fix handling of 4k panels
Hi,
+Sam Ravnborg
I think this patch is ready to get pulled into the drm-misc tree.
On Thu, 17 Dec 2020 at 15:09, Robert Foss <robert.foss@...aro.org> wrote:
>
> 4k requires two dsi pipes, so don't report MODE_OK when only a
> single pipe is configured. But rather report MODE_PANEL to
> signal that requirements of the panel are not being met.
>
> Reported-by: Peter Collingbourne <pcc@...gle.com>
> Suggested-by: Peter Collingbourne <pcc@...gle.com>
> Signed-off-by: Robert Foss <robert.foss@...aro.org>
> Tested-by: John Stultz <john.stultz@...aro.org>
> Tested-by: Anibal Limon <anibal.limon@...aro.org>
> Acked-By: Vinod Koul <vkoul@...nel.org>
> Tested-by: Peter Collingbourne <pcc@...gle.com>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@...aro.org>
> ---
> drivers/gpu/drm/bridge/lontium-lt9611.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c
> index d734d9402c35..e8eb8deb444b 100644
> --- a/drivers/gpu/drm/bridge/lontium-lt9611.c
> +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c
> @@ -867,8 +867,14 @@ static enum drm_mode_status lt9611_bridge_mode_valid(struct drm_bridge *bridge,
> const struct drm_display_mode *mode)
> {
> struct lt9611_mode *lt9611_mode = lt9611_find_mode(mode);
> + struct lt9611 *lt9611 = bridge_to_lt9611(bridge);
>
> - return lt9611_mode ? MODE_OK : MODE_BAD;
> + if (!lt9611_mode)
> + return MODE_BAD;
> + else if (lt9611_mode->intfs > 1 && !lt9611->dsi1)
> + return MODE_PANEL;
> + else
> + return MODE_OK;
> }
>
> static void lt9611_bridge_pre_enable(struct drm_bridge *bridge)
> --
> 2.27.0
>
Powered by blists - more mailing lists