Re: [PATCH 3/3] drm/panel-edp: Choose correct preferred mode

From: Dmitry Baryshkov
Date: Thu Nov 02 2023 - 02:32:04 EST


On Wed, 1 Nov 2023 at 23:26, Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx> wrote:
>
> If a non generic edp-panel is under aux-bus, the mode read from edid would
> still be selected as preferred and results in multiple preferred modes,
> which is ambiguous.
>
> If a hard-coded mode is present, unset the preferred bit of the modes read
> from edid.

Can we skip the EDID completely if the hardcoded override is present?

>
> Signed-off-by: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx>
> ---
> drivers/gpu/drm/drm_modes.c | 16 ++++++++++++++++
> drivers/gpu/drm/panel/panel-edp.c | 7 +++++--
> include/drm/drm_modes.h | 1 +
> 3 files changed, 22 insertions(+), 2 deletions(-)

Anyway, this should be split into two patches. One for drm_modes.c,
another one for the panel driver.

--
With best wishes
Dmitry