]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix pipe off timeout handling for pre-gen4
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2013 11:21:31 +0000 (14:21 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Oct 2013 21:22:25 +0000 (23:22 +0200)
commitba591f236a3f556f100bc6e8ec7fcbe6e5925569
tree29689bcf81fb53f1f11d63f5fbe921e70fa2ceb5
parent3a1e3da1175fe90c6e6d0c02ef66f380b48bc547
drm/i915: Fix pipe off timeout handling for pre-gen4

The current pre-gen4 pipe off code might break out of the loop
due to the timeout, but then the fail to print the warning.

Refactor the code a bit to use wait_for() to avoid the problem,
and that we also re-check the condition after the timeout has
expired.

v2: Use wait_for()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c