drm/atomic: shutdown *current* encoder
authorRob Clark <robdclark@gmail.com>
Thu, 20 Nov 2014 20:40:36 +0000 (15:40 -0500)
committerRob Clark <robdclark@gmail.com>
Fri, 21 Nov 2014 21:06:15 +0000 (16:06 -0500)
commit46df9adb2e7709e56ab8aacaff2fc997a6d17239
tree3c3afeec99f63a52904f55906eb987bf89710612
parent934ce1c23624526d9d784e0499190bb48113e6f4
drm/atomic: shutdown *current* encoder

In disable_outputs() we need to shut down the outgoing encoder, not the
incoming one (we have already swapped-state at this point).  Without
this, we end up telling the driver to crtc->dpms(OFF) without first
encoder->dpms(OFF), and that makes some hw quite unhappy.

v2: missing WARN_ON() hunk and comment

Reviewed-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_atomic_helper.c