drm/crtc-helper: Add store the property value 75/197775/1 old/tizen_20190328 accepted/tizen/unified/20190117.151847 submit/tizen/20190117.082548
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 16 Jan 2019 04:59:35 +0000 (13:59 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 16 Jan 2019 04:59:35 +0000 (13:59 +0900)
There is a problem in crtc_helper that property value is not updated
when dpms is turned on or off. So modify the property value when dpms
is on.

Change-Id: Iac5d6db80b80fd5595f5908c6d2a3428aa119c1c
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/gpu/drm/drm_crtc_helper.c

index ff9b338054915b774daa3b483b08db4777c01959..dc4981df9efe156f04466c45f56fec49ea08eb3e 100644 (file)
@@ -661,6 +661,11 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
                                DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id,
                                              set->connectors[i]->name);
                                set->connectors[i]->funcs->dpms(set->connectors[i], DRM_MODE_DPMS_ON);
+
+                               /* store the property value */
+                               drm_object_property_set_value(&set->connectors[i]->base,
+                                                       set->connectors[i]->dev->mode_config.dpms_property,
+                                                       DRM_MODE_DPMS_ON);
                        }
                }
                __drm_helper_disable_unused_functions(dev);