[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=X7K2KQoRCsr17kj-DWiPs7h_zfcYxK_cdBVnC0wR1NwA@mail.gmail.com>
Date: Tue, 14 Mar 2023 10:12:02 -0700
From: Doug Anderson <dianders@...omium.org>
To: Jianhua Lu <lujianhua000@...il.com>
Cc: Neil Armstrong <neil.armstrong@...aro.org>,
Sam Ravnborg <sam@...nborg.org>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/panel: Fix panel mode type setting logic
Hi,
On Tue, Mar 14, 2023 at 4:45 AM Jianhua Lu <lujianhua000@...il.com> wrote:
>
> Some panels set mode type to DRM_MODE_TYPE_PREFERRED by the number
> of modes. It isn't reasonable, so set the first mode type to
> DRM_MODE_TYPE_PREFERRED. This should be more reasonable.
>
> Signed-off-by: Jianhua Lu <lujianhua000@...il.com>
> ---
> drivers/gpu/drm/panel/panel-abt-y030xx067a.c | 2 +-
> drivers/gpu/drm/panel/panel-auo-a030jtn01.c | 2 +-
> drivers/gpu/drm/panel/panel-edp.c | 4 ++--
> drivers/gpu/drm/panel/panel-innolux-ej030na.c | 2 +-
> drivers/gpu/drm/panel/panel-newvision-nv3051d.c | 2 +-
> drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 2 +-
> drivers/gpu/drm/panel/panel-novatek-nt35950.c | 2 +-
> drivers/gpu/drm/panel/panel-novatek-nt39016.c | 2 +-
> drivers/gpu/drm/panel/panel-orisetech-ota5601a.c | 2 +-
> drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 4 ++--
> drivers/gpu/drm/panel/panel-simple.c | 4 ++--
> 11 files changed, 14 insertions(+), 14 deletions(-)
Can you explain more about your motivation here? At least for
panel-edp and panel-simple it seems like it would be better to leave
the logic alone and manually add DRM_MODE_TYPE_PREFERRED to the right
mode for the rare panel that actually has more than one mode listed.
That feels more explicit to me.
-Doug
Powered by blists - more mailing lists