From: Daniel Vetter Date: Fri, 11 Jul 2014 17:30:12 +0000 (-0700) Subject: drm/i915: Don't try to disable psr harder from the work item X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e921bcbfba1f973c60e3c537adeb32e0cdf2eb77;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Don't try to disable psr harder from the work item It's disabled already except when we've raced. Reviewed-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 457bd82373d7..0184188b3a2d 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1896,9 +1896,7 @@ static void intel_edp_psr_work(struct work_struct *work) if (!intel_dp) return; - if (!intel_edp_psr_match_conditions(intel_dp)) - intel_edp_psr_disable(intel_dp); - else + if (intel_edp_psr_match_conditions(intel_dp)) intel_edp_psr_do_enable(intel_dp); }