Skip to contentSkip to conversation

drm/bridge: anx7625: Fix invalid EDID size

PATCH RESEND Applied Loic Poulain 2 participants 2 messages Dec 18, 2025 – Jan 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 drm/bridge: anx7625: Fix invalid EDID size

DRM checks EDID block count against allocated size in drm_edid_valid function. We have to allocate the right EDID size instead of the max size to prevent the EDID to be reported as invalid.

Fixes 7c585f9a71aa ("drm/bridge: anx7625: use struct drm_edid more")
---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/analogix/anx7625.c +1 -1
index 6f3fdcb6afdb..4e49e4f28d55 100644
@@ -1801,7 +1801,7 @@ static const struct drm_edid *anx7625_edid_read(struct anx7625_data *ctx)
 		return NULL;
 	}
 
-	ctx->cached_drm_edid = drm_edid_alloc(edid_buf, FOUR_BLOCK_SIZE);
+	ctx->cached_drm_edid = drm_edid_alloc(edid_buf, edid_num * ONE_BLOCK_SIZE);
 	kfree(edid_buf);
 
 out:
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Loic Poulain

DRM checks EDID block count against allocated size in drm_edid_valid function. We have to allocate the right EDID size instead of the max size to prevent the EDID to be reported as invalid.

Applied to drm-misc-next, thanks!

[1/1] drm/bridge: anx7625: Fix invalid EDID size

      commit: 1d5362145de96b5d00d590605cc94cdfa572b405

Best regards,

Signature · 2 lines
With best wishes
Dmitry