diff options
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 9085db634092..ed1334e27c33 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -1007,13 +1007,20 @@ static void output_poll_execute(struct work_struct *work) | |||
1007 | continue; | 1007 | continue; |
1008 | 1008 | ||
1009 | connector->status = connector->funcs->detect(connector, false); | 1009 | connector->status = connector->funcs->detect(connector, false); |
1010 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] status updated from %s to %s\n", | 1010 | if (old_status != connector->status) { |
1011 | connector->base.id, | 1011 | const char *old, *new; |
1012 | drm_get_connector_name(connector), | 1012 | |
1013 | drm_get_connector_status_name(old_status), | 1013 | old = drm_get_connector_status_name(old_status); |
1014 | drm_get_connector_status_name(connector->status)); | 1014 | new = drm_get_connector_status_name(connector->status); |
1015 | if (old_status != connector->status) | 1015 | |
1016 | DRM_DEBUG_KMS("[CONNECTOR:%d:%s] " | ||
1017 | "status updated from %s to %s\n", | ||
1018 | connector->base.id, | ||
1019 | drm_get_connector_name(connector), | ||
1020 | old, new); | ||
1021 | |||
1016 | changed = true; | 1022 | changed = true; |
1023 | } | ||
1017 | } | 1024 | } |
1018 | 1025 | ||
1019 | mutex_unlock(&dev->mode_config.mutex); | 1026 | mutex_unlock(&dev->mode_config.mutex); |