]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/radeon/radeon_connectors.c
DRM - radeon: Don't link train DisplayPort on HPD until we get the dpcd
[karo-tx-linux.git] / drivers / gpu / drm / radeon / radeon_connectors.c
index 94b21ae70ef725781c8dc7d0ec8a30fbd48f0e0e..5a2cafb4f1bc595220e603ed1942e65bf24b20b7 100644 (file)
@@ -95,6 +95,11 @@ void radeon_connector_hotplug(struct drm_connector *connector)
                        if (!radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) {
                                drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF);
                        } else if (radeon_dp_needs_link_train(radeon_connector)) {
+                               /* Don't try to start link training before we
+                                * have the dpcd */
+                               if (!radeon_dp_getdpcd(radeon_connector))
+                                       return;
+
                                /* set it to OFF so that drm_helper_connector_dpms()
                                 * won't return immediately since the current state
                                 * is ON at this point.