Commit 9931e4be authored by Antheas Kapenekakis's avatar Antheas Kapenekakis Committed by Mario Limonciello (AMD)
Browse files

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: default avatarPhilip Müller <philm@manjaro.org>
Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAntheas Kapenekakis <lkml@antheas.dev>
Link: https://lore.kernel.org/r/20250829145541.512671-2-lkml@antheas.dev


Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarMario Limonciello (AMD) <superm1@kernel.org>
parent 5afa9d2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;