Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254853
b: refs/heads/master
c: 59cd09e
h: refs/heads/master
i:
  254851: 8f5f026
v: v3
  • Loading branch information
Jesse Barnes authored and Keith Packard committed Jul 7, 2011
1 parent 0b95cab commit 79cd88d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7183dc2912510cf005fcc59239f8d153ef51d3f0
refs/heads/master: 59cd09e1aea3ac6eb15b45e5d2261a63ecb1799c
11 changes: 11 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,8 @@ intel_dp_link_down(struct intel_dp *intel_dp)
static void
intel_dp_check_link_status(struct intel_dp *intel_dp)
{
int ret;

if (!intel_dp->base.base.crtc)
return;

Expand All @@ -1530,6 +1532,15 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
return;
}

/* Try to read receiver status if the link appears to be up */
ret = intel_dp_aux_native_read(intel_dp,
0x000, intel_dp->dpcd,
sizeof (intel_dp->dpcd));
if (ret != sizeof(intel_dp->dpcd)) {
intel_dp_link_down(intel_dp);
return;
}

if (!intel_channel_eq_ok(intel_dp)) {
intel_dp_start_link_train(intel_dp);
intel_dp_complete_link_train(intel_dp);
Expand Down

0 comments on commit 79cd88d

Please sign in to comment.