Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345163
b: refs/heads/master
c: 035aa3d
h: refs/heads/master
i:
  345161: 134b4e3
  345159: b8d3f7b
v: v3
  • Loading branch information
Daniel Vetter committed Oct 24, 2012
1 parent a26de1d commit 8cd745d
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 82ed61fa1a4e08d5f9e86fb1b715b50ed678b6ac
refs/heads/master: 035aa3dec811315a9e3613cd9ab818e584d7c21d
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,7 @@ static void ironlake_edp_backlight_on(struct intel_dp *intel_dp)
{
struct drm_device *dev = intel_dp->base.base.dev;
struct drm_i915_private *dev_priv = dev->dev_private;
int pipe = to_intel_crtc(intel_dp->base.base.crtc)->pipe;
u32 pp;

if (!is_edp(intel_dp))
Expand All @@ -1181,6 +1182,8 @@ static void ironlake_edp_backlight_on(struct intel_dp *intel_dp)
pp |= EDP_BLC_ENABLE;
I915_WRITE(PCH_PP_CONTROL, pp);
POSTING_READ(PCH_PP_CONTROL);

intel_panel_enable_backlight(dev, pipe);
}

static void ironlake_edp_backlight_off(struct intel_dp *intel_dp)
Expand All @@ -1192,6 +1195,8 @@ static void ironlake_edp_backlight_off(struct intel_dp *intel_dp)
if (!is_edp(intel_dp))
return;

intel_panel_disable_backlight(dev);

DRM_DEBUG_KMS("\n");
pp = ironlake_get_pp_control(dev_priv);
pp &= ~EDP_BLC_ENABLE;
Expand Down

0 comments on commit 8cd745d

Please sign in to comment.