Commit 70bf6878 authored by Stephen Warren's avatar Stephen Warren Committed by Thierry Reding

drm/panel: update EDID BLOB in panel_simple_get_modes()

This stashes away the EDID data so that the sysfs per-connector file
"edid" can display it. Without this change, the "edid" file is always
empty.
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent be2cd59b
...@@ -162,6 +162,7 @@ static int panel_simple_get_modes(struct drm_panel *panel) ...@@ -162,6 +162,7 @@ static int panel_simple_get_modes(struct drm_panel *panel)
/* probe EDID if a DDC bus is available */ /* probe EDID if a DDC bus is available */
if (p->ddc) { if (p->ddc) {
struct edid *edid = drm_get_edid(panel->connector, p->ddc); struct edid *edid = drm_get_edid(panel->connector, p->ddc);
drm_mode_connector_update_edid_property(panel->connector, edid);
if (edid) { if (edid) {
num += drm_add_edid_modes(panel->connector, edid); num += drm_add_edid_modes(panel->connector, edid);
kfree(edid); kfree(edid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment