[Intel-gfx] [PATCH 8/8] drm/i915/dp: clear receiver_configured when link training fails
Jesse Barnes
jbarnes at virtuousgeek.org
Sat Jul 2 00:22:58 CEST 2011
When link training or detection fails, set the receiver_configured flag
to false to reflect the current state.
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
drivers/gpu/drm/i915/intel_dp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index ac6334d..e3dd40f 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1383,6 +1383,7 @@ intel_dp_complete_link_train(struct intel_dp *intel_dp)
if (cr_tries > 5) {
DRM_ERROR("failed to train DP, aborting\n");
intel_dp_link_down(intel_dp);
+ intel_dp->receiver_configured = false;
break;
}
@@ -1556,6 +1557,7 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
out_gone:
DRM_DEBUG_DRIVER("sink gone, clearing crtc for DP\n");
intel_dp->base.base.crtc = NULL;
+ intel_dp->receiver_configured = false;
}
static enum drm_connector_status
--
1.7.4.1
More information about the Intel-gfx
mailing list