drm/i915/dp: Flush any outstanding work to turn the VDD off
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Apr 2012 21:43:42 +0000 (22:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:36:19 +0000 (00:36 +0900)
commit546230dfa483f6d1f188d1a1a20122ecabf82816
treec5575b037e9e5b66fce1abee67d45227d72e6189
parentb522dbf26fe08158348773c36dbf88e8147dcc66
drm/i915/dp: Flush any outstanding work to turn the VDD off

commit 17038de5f16569a25343cf68668f3b657eafb00e upstream.

As we may kick off a delayed workqueue task to switch of the VDD lines, we
need to complete that task prior to turning off the panel (which itself
depends upon VDD being off).

v2: Don't cancel the outstanding work as this may trigger a deadlock

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Keith Packard <keithp@keithp.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_dp.c