Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf9dc10

Browse files
keith-packardairlied
authored andcommitted
drm: Set connector DPMS status to ON in drm_crtc_helper_set_config
When setting a new crtc configuration, force the DPMS state of all connectors to ON. Otherwise, they'll be left at OFF and a future mode set that disables the specified connector will not turn the connector off. Signed-off-by: Keith Packard <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent e536fb6 commit bf9dc10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/drm_crtc_helper.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
471471
int count = 0, ro, fail = 0;
472472
struct drm_crtc_helper_funcs *crtc_funcs;
473473
int ret = 0;
474+
int i;
474475

475476
DRM_DEBUG_KMS("\n");
476477

@@ -666,6 +667,12 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
666667
if (ret != 0)
667668
goto fail;
668669
}
670+
DRM_DEBUG_KMS("Setting connector DPMS state to on\n");
671+
for (i = 0; i < set->num_connectors; i++) {
672+
DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id,
673+
drm_get_connector_name(set->connectors[i]));
674+
set->connectors[i]->dpms = DRM_MODE_DPMS_ON;
675+
}
669676

670677
kfree(save_connectors);
671678
kfree(save_encoders);

0 commit comments

Comments
 (0)