Skip to content

Commit 9931e4b

Browse files
antheassuperm1
authored andcommitted
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>
1 parent 5afa9d2 commit 9931e4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/drm_panel_backlight_quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static bool drm_panel_min_backlight_quirk_matches(const struct drm_panel_min_bac
5050
if (!dmi_match(quirk->dmi_match.field, quirk->dmi_match.value))
5151
return false;
5252

53-
if (!drm_edid_match(edid, &quirk->ident))
53+
if (quirk->ident.panel_id && !drm_edid_match(edid, &quirk->ident))
5454
return false;
5555

5656
return true;

0 commit comments

Comments
 (0)