Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345077
b: refs/heads/master
c: da131a4
h: refs/heads/master
i:
  345075: 635e95e
v: v3
  • Loading branch information
Adam Jackson authored and Daniel Vetter committed Sep 26, 2012
1 parent 1b07f99 commit 400e8a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a477f4fcbdd48837610974b0d025af1d46051a57
refs/heads/master: da131a46268bf2a67e7b7fa137a90a1279866367
9 changes: 4 additions & 5 deletions trunk/drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2101,13 +2101,12 @@ intel_dp_detect_dpcd(struct intel_dp *intel_dp)
/* If we're HPD-aware, SINK_COUNT changes dynamically */
hpd = !!(intel_dp->downstream_ports[0] & DP_DS_PORT_HPD);
if (hpd) {
uint8_t sink_count;
uint8_t reg;
if (!intel_dp_aux_native_read_retry(intel_dp, DP_SINK_COUNT,
&sink_count, 1))
&reg, 1))
return connector_status_unknown;
sink_count &= DP_SINK_COUNT_MASK;
return sink_count ? connector_status_connected
: connector_status_disconnected;
return DP_GET_SINK_COUNT(reg) ? connector_status_connected
: connector_status_disconnected;
}

/* If no HPD, poke DDC gently */
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/drm/drm_dp_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@
# define DP_PSR_FRAME_CAPTURE (1 << 3)

#define DP_SINK_COUNT 0x200
# define DP_SINK_COUNT_MASK (31 << 0)
/* prior to 1.2 bit 7 was reserved mbz */
# define DP_GET_SINK_COUNT(x) ((((x) & 0x80) >> 1) | ((x) & 0x3f))
# define DP_SINK_CP_READY (1 << 6)

#define DP_DEVICE_SERVICE_IRQ_VECTOR 0x201
Expand Down

0 comments on commit 400e8a4

Please sign in to comment.