Skip to content

Commit 3407644

Browse files
Jerome Glisseairlied
authored andcommitted
drm/radeon: avoid bouncing connector status btw disconnected & unknown
Since force handling rework of d0d0a22 we could end up bouncing connector status btw disconnected and unknown. When connector status change a call to output_poll_changed happen which in turn ask again for detect but with force set. So set the load detect flags whenever we report the connector as connected or unknown this avoid bouncing btw disconnected and unknown. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 305151e commit 3407644

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/gpu/drm/radeon/radeon_connectors.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ radeon_vga_detect(struct drm_connector *connector, bool force)
764764
if (radeon_connector->dac_load_detect && encoder) {
765765
encoder_funcs = encoder->helper_private;
766766
ret = encoder_funcs->detect(encoder, connector);
767-
if (ret == connector_status_connected)
767+
if (ret != connector_status_disconnected)
768768
radeon_connector->detected_by_load = true;
769769
}
770770
}
@@ -1005,8 +1005,9 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
10051005
ret = encoder_funcs->detect(encoder, connector);
10061006
if (ret == connector_status_connected) {
10071007
radeon_connector->use_digital = false;
1008-
radeon_connector->detected_by_load = true;
10091008
}
1009+
if (ret != connector_status_disconnected)
1010+
radeon_connector->detected_by_load = true;
10101011
}
10111012
break;
10121013
}

0 commit comments

Comments
 (0)