Re: [PATCH] drm/panel: Fix panel mode type setting logic

From: Doug Anderson
Date: Tue Mar 14 2023 - 13:12:22 EST


Hi,

On Tue, Mar 14, 2023 at 4:45 AM Jianhua Lu <lujianhua000@xxxxxxxxx> 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@xxxxxxxxx>
> ---
> 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