Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262533
b: refs/heads/master
c: d2b996a
h: refs/heads/master
i:
  262531: 1bd4a77
v: v3
  • Loading branch information
Keith Packard committed Jul 28, 2011
1 parent 8170858 commit b2e37af
Show file tree
Hide file tree
Showing 2 changed files with 9 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: f0575e92974d328e8816ed89704c985a7d7d90ac
refs/heads/master: d2b996ac698aebb28557355857927b8b934bb4f9
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ struct intel_dp {
bool has_audio;
int force_audio;
uint32_t color_range;
int dpms_mode;
uint8_t link_bw;
uint8_t lane_count;
uint8_t dpcd[8];
Expand Down Expand Up @@ -1011,6 +1012,8 @@ static void intel_dp_commit(struct drm_encoder *encoder)

if (is_edp(intel_dp))
ironlake_edp_backlight_on(dev);

intel_dp->dpms_mode = DRM_MODE_DPMS_ON;
}

static void
Expand Down Expand Up @@ -1045,6 +1048,7 @@ intel_dp_dpms(struct drm_encoder *encoder, int mode)
if (is_edp(intel_dp))
ironlake_edp_backlight_on(dev);
}
intel_dp->dpms_mode = mode;
}

/*
Expand Down Expand Up @@ -1591,6 +1595,9 @@ intel_dp_get_dpcd(struct intel_dp *intel_dp)
static void
intel_dp_check_link_status(struct intel_dp *intel_dp)
{
if (intel_dp->dpms_mode != DRM_MODE_DPMS_ON)
return;

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

Expand Down Expand Up @@ -1939,6 +1946,7 @@ intel_dp_init(struct drm_device *dev, int output_reg)
return;

intel_dp->output_reg = output_reg;
intel_dp->dpms_mode = -1;

intel_connector = kzalloc(sizeof(struct intel_connector), GFP_KERNEL);
if (!intel_connector) {
Expand Down

0 comments on commit b2e37af

Please sign in to comment.