aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index 3fba50540f72..3bc20406d45b 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -287,6 +287,7 @@ int radeon_connector_set_property(struct drm_connector *connector, struct drm_pr
287 287
288 if (property == rdev->mode_info.coherent_mode_property) { 288 if (property == rdev->mode_info.coherent_mode_property) {
289 struct radeon_encoder_atom_dig *dig; 289 struct radeon_encoder_atom_dig *dig;
290 bool new_coherent_mode;
290 291
291 /* need to find digital encoder on connector */ 292 /* need to find digital encoder on connector */
292 encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); 293 encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS);
@@ -299,8 +300,11 @@ int radeon_connector_set_property(struct drm_connector *connector, struct drm_pr
299 return 0; 300 return 0;
300 301
301 dig = radeon_encoder->enc_priv; 302 dig = radeon_encoder->enc_priv;
302 dig->coherent_mode = val ? true : false; 303 new_coherent_mode = val ? true : false;
303 radeon_property_change_mode(&radeon_encoder->base); 304 if (dig->coherent_mode != new_coherent_mode) {
305 dig->coherent_mode = new_coherent_mode;
306 radeon_property_change_mode(&radeon_encoder->base);
307 }
304 } 308 }
305 309
306 if (property == rdev->mode_info.tv_std_property) { 310 if (property == rdev->mode_info.tv_std_property) {