drm/i915: Don't try to disable psr harder from the work item
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Jul 2014 17:30:12 +0000 (10:30 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 05:05:16 +0000 (07:05 +0200)
It's disabled already except when we've raced.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c

index 457bd82373d7d6714914c64133b3b0e6293fba53..0184188b3a2d2475e83154db22cda2eadbee3b18 100644 (file)
@@ -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);
 }