Re: [PATCH v6 2/5] drm/edid: Add a function to match EDID with identity

From: Doug Anderson
Date: Thu Mar 07 2024 - 19:04:44 EST


Hi,

On Thu, Mar 7, 2024 at 3:07 PM Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx> wrote:
>
> Create a type drm_edid_ident as the identity of an EDID. Currently it
> contains panel id and monitor name.
>
> Create a function that can match a given EDID and an identity:
> 1. Reject if the panel id doesn't match.
> 2. If name is not null in identity, try to match it in the detailed timing
> blocks. Note that some panel vendors put the monitor name after
> EDID_DETAIL_MONITOR_STRING.
>
> Signed-off-by: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx>
> ---
> v5->v6: finalize the trailing white space and/or NUL decision:
> Allow only white space before \n.
> ---
> drivers/gpu/drm/drm_edid.c | 65 ++++++++++++++++++++++++++++++++++++++
> include/drm/drm_edid.h | 9 ++++++
> 2 files changed, 74 insertions(+)

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>