[Intel-gfx] [PATCH] drm/i915: disable ADPA before dpms operation

yakui_zhao yakui.zhao at intel.com
Thu Jun 25 08:27:30 CEST 2009


On Thu, 2009-06-25 at 11:55 +0800, ling.ma at intel.com wrote:
> Before dmps operation we don't know current ADPA status,
> so need to disable enable bit in advance, then handle
> dpms according to instruction from drm.
right.
This is what we have done in UMS mode for crtc DPMS.
acked-by: Zhao Yakui <yakui.zhao at intel.com>
> 
> Signed-off-by: Ma Ling <ling.ma at intel.com>
> ---
>  drivers/gpu/drm/i915/intel_crt.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
> index 6de97fc..e344130 100644
> --- a/drivers/gpu/drm/i915/intel_crt.c
> +++ b/drivers/gpu/drm/i915/intel_crt.c
> @@ -46,7 +46,7 @@ static void intel_crt_dpms(struct drm_encoder *encoder, int mode)
>  
>  	temp = I915_READ(reg);
>  	temp &= ~(ADPA_HSYNC_CNTL_DISABLE | ADPA_VSYNC_CNTL_DISABLE);
> -	temp |= ADPA_DAC_ENABLE;
> +	temp &= ~ADPA_DAC_ENABLE;
>  
>  	switch(mode) {
>  	case DRM_MODE_DPMS_ON:




More information about the Intel-gfx mailing list