From: Jianhua Lu <lujianhua000@gmail.com>
To: Doug Anderson <dianders@chromium.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/panel: Fix panel mode type setting logic
Date: Wed, 15 Mar 2023 07:55:33 +0800 [thread overview]
Message-ID: <ZBEJdX6WVZ3Kqdo0@Gentoo> (raw)
In-Reply-To: <CAD=FV=X7K2KQoRCsr17kj-DWiPs7h_zfcYxK_cdBVnC0wR1NwA@mail.gmail.com>
On Tue, Mar 14, 2023 at 10:12:02AM -0700, Doug Anderson wrote:
> Hi,
>
> On Tue, Mar 14, 2023 at 4:45 AM Jianhua Lu <lujianhua000@gmail.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@gmail.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
This demonstrates a bad way to set DRM_MODE_TYPE_PREFERRED for panels
with more than one mode. It mislead the future contributors to send
a patch with this piece of code. There is also a discussion for it.
https://lore.kernel.org/lkml/904bc493-7160-32fd-9709-1dcb978ddbab@linaro.org/
> 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.
I think we can order it to the first mode if the mode type should be
DRM_MODE_TYPE_PREFERRED, It's also same.
> That feels more explicit to me.
>
> -Doug
next prev parent reply other threads:[~2023-03-14 23:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 11:44 [PATCH] drm/panel: Fix panel mode type setting logic Jianhua Lu
2023-03-14 17:12 ` Doug Anderson
2023-03-14 23:55 ` Jianhua Lu [this message]
2023-03-17 0:23 ` Doug Anderson
2023-03-22 10:49 ` Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZBEJdX6WVZ3Kqdo0@Gentoo \
--to=lujianhua000@gmail.com \
--cc=airlied@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox