drm/panel: update EDID BLOB in panel_simple_get_modes()
authorStephen Warren <swarren@nvidia.com>
Thu, 9 Jan 2014 18:37:34 +0000 (11:37 -0700)
committerThierry Reding <treding@nvidia.com>
Tue, 14 Jan 2014 15:02:02 +0000 (16:02 +0100)
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: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-simple.c

index 520b569ae3c8cf2ce856f8a4ce3ef93b18d3e131..59d52ca2c67fdf6caaf9e1729998f2a24b20813e 100644 (file)
@@ -162,6 +162,7 @@ static int panel_simple_get_modes(struct drm_panel *panel)
        /* probe EDID if a DDC bus is available */
        if (p->ddc) {
                struct edid *edid = drm_get_edid(panel->connector, p->ddc);
+               drm_mode_connector_update_edid_property(panel->connector, edid);
                if (edid) {
                        num += drm_add_edid_modes(panel->connector, edid);
                        kfree(edid);