diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_connectors.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 6c9e17f3970e..5947871e1062 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -50,20 +50,15 @@ void radeon_connector_hotplug(struct drm_connector *connector) | |||
50 | struct radeon_device *rdev = dev->dev_private; | 50 | struct radeon_device *rdev = dev->dev_private; |
51 | struct radeon_connector *radeon_connector = to_radeon_connector(connector); | 51 | struct radeon_connector *radeon_connector = to_radeon_connector(connector); |
52 | 52 | ||
53 | if (radeon_connector->hpd.hpd != RADEON_HPD_NONE) | 53 | radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); |
54 | radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); | ||
55 | |||
56 | if ((connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) || | ||
57 | (connector->connector_type == DRM_MODE_CONNECTOR_eDP)) { | ||
58 | if ((radeon_dp_getsinktype(radeon_connector) == CONNECTOR_OBJECT_ID_DISPLAYPORT) || | ||
59 | (radeon_dp_getsinktype(radeon_connector) == CONNECTOR_OBJECT_ID_eDP)) { | ||
60 | if (radeon_dp_needs_link_train(radeon_connector)) { | ||
61 | if (connector->encoder) | ||
62 | radeon_dp_link_train(connector->encoder, connector); | ||
63 | } | ||
64 | } | ||
65 | } | ||
66 | 54 | ||
55 | /* pre-r600 did not always have the hpd pins mapped accurately to connectors */ | ||
56 | if (rdev->family >= CHIP_R600) { | ||
57 | if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) | ||
58 | drm_helper_connector_dpms(connector, DRM_MODE_DPMS_ON); | ||
59 | else | ||
60 | drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF); | ||
61 | } | ||
67 | } | 62 | } |
68 | 63 | ||
69 | static void radeon_property_change_mode(struct drm_encoder *encoder) | 64 | static void radeon_property_change_mode(struct drm_encoder *encoder) |