Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329293
b: refs/heads/master
c: 25e9dc6
h: refs/heads/master
i:
  329291: 50f3fd9
v: v3
  • Loading branch information
Zhao Yakui authored and Dave Airlie committed Aug 23, 2012
1 parent a6ef4cb commit 0107c42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 4dabd1b94da7aedb5c18b67e85c6a71cc1161eac
refs/heads/master: 25e9dc69709afad2be8de4ac2ecd6015356936ca
7 changes: 3 additions & 4 deletions trunk/drivers/gpu/drm/gma500/cdv_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
case DRM_MODE_DPMS_STANDBY:
case DRM_MODE_DPMS_SUSPEND:
if (psb_intel_crtc->active)
return;
break;

psb_intel_crtc->active = true;

Expand Down Expand Up @@ -835,7 +835,6 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
REG_WRITE(map->status, temp);
REG_READ(map->status);

cdv_intel_update_watermark(dev, crtc);
cdv_intel_crtc_load_lut(crtc);

/* Give the overlay scaler a chance to enable
Expand All @@ -845,7 +844,7 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
break;
case DRM_MODE_DPMS_OFF:
if (!psb_intel_crtc->active)
return;
break;

psb_intel_crtc->active = false;

Expand Down Expand Up @@ -892,10 +891,10 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)

/* Wait for the clocks to turn off. */
udelay(150);
cdv_intel_update_watermark(dev, crtc);
psb_intel_crtc->crtc_enable = false;
break;
}
cdv_intel_update_watermark(dev, crtc);
/*Set FIFO Watermarks*/
REG_WRITE(DSPARB, 0x3F3E);
}
Expand Down

0 comments on commit 0107c42

Please sign in to comment.