drm: panel-backlight-quirks: Make EDID match optional

Currently, having a valid panel_id match is required to use the quirk
system. For certain devices, we know that all SKUs need a certain quirk.
Therefore, allow not specifying ident by only checking for a match
if panel_id is non-zero.

Tested-by: Philip Müller <philm@manjaro.org>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Link: https://lore.kernel.org/r/20250829145541.512671-2-lkml@antheas.dev
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
This commit is contained in:
Antheas Kapenekakis 2025-08-29 16:55:36 +02:00 committed by Mario Limonciello (AMD)
parent 5afa9d2a9b
commit 9931e4be11

View File

@ -50,7 +50,7 @@ static bool drm_panel_min_backlight_quirk_matches(const struct drm_panel_min_bac
if (!dmi_match(quirk->dmi_match.field, quirk->dmi_match.value))
return false;
if (!drm_edid_match(edid, &quirk->ident))
if (quirk->ident.panel_id && !drm_edid_match(edid, &quirk->ident))
return false;
return true;