Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218299
b: refs/heads/master
c: 8966738
h: refs/heads/master
i:
  218297: 627a5fb
  218295: 642e4be
v: v3
  • Loading branch information
Jesse Barnes authored and Chris Wilson committed Oct 8, 2010
1 parent fc6daaf commit 3d42cac
Show file tree
Hide file tree
Showing 3 changed files with 22 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: 8088699f029b2a27af9bc5431ef7542c84195760
refs/heads/master: 896673836b8c55b75e7d7d2741aaaadff0c6a038
1 change: 1 addition & 0 deletions trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ typedef struct drm_i915_private {
int bpp;
struct edp_power_seq pps;
} edp;
bool no_aux_handshake;

struct notifier_block lid_notifier;

Expand Down
20 changes: 20 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,26 @@ intel_dp_init(struct drm_device *dev, int output_reg)

intel_dp_i2c_init(intel_dp, intel_connector, name);

/* Cache some DPCD data in the eDP case */
if (is_edp(intel_dp)) {
int ret;
bool was_on;

was_on = ironlake_edp_panel_on(intel_dp);
ret = intel_dp_aux_native_read(intel_dp, DP_DPCD_REV,
intel_dp->dpcd,
sizeof(intel_dp->dpcd));
if (ret == sizeof(intel_dp->dpcd)) {
if (intel_dp->dpcd[0] >= 0x11)
dev_priv->no_aux_handshake = intel_dp->dpcd[3] &
DP_NO_AUX_HANDSHAKE_LINK_TRAINING;
} else {
DRM_ERROR("failed to retrieve link info\n");
}
if (!was_on)
ironlake_edp_panel_off(dev);
}

intel_encoder->hot_plug = intel_dp_hot_plug;

if (is_edp(intel_dp)) {
Expand Down

0 comments on commit 3d42cac

Please sign in to comment.