drm/panel-edp: Match edp_panels with panel identity
authorHsin-Yi Wang <hsinyi@chromium.org>
Thu, 7 Mar 2024 22:57:44 +0000 (14:57 -0800)
committerDouglas Anderson <dianders@chromium.org>
Thu, 14 Mar 2024 15:23:47 +0000 (08:23 -0700)
commitbf201127c1b8f26becd3446771cc480b78afd6aa
tree91da8f8bf16f0a916bbad20801a3011d6c2f8d3f
parent7ff53c2f77f2a46a8822aa08c620d2eb4815e089
drm/panel-edp: Match edp_panels with panel identity

It's found that some panels have variants that they share the same panel id
although their EDID and names are different. When matching generic edp
panels, we should first match with both panel identity, which contains both
panel id and panel name. If not found, match with panel id only.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240307230653.1807557-5-hsinyi@chromium.org
drivers/gpu/drm/panel/panel-edp.c