drm/i915: fix intel_prepare_ddi
authorImre Deak <imre.deak@intel.com>
Fri, 17 Apr 2015 16:31:22 +0000 (19:31 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 30 Apr 2015 09:33:09 +0000 (12:33 +0300)
commitfaa0cdbec1c258896bff8bb59051bbada4fd6f09
tree3657cdbe783e300128362642ff3147d9ec222ad6
parenta1e6ad667550a9be173d0a0cfbba236d9252f837
drm/i915: fix intel_prepare_ddi

At the moment intel_prepare_ddi buffer will iterate through both MST and
CRT encoders, which is incorrect. Neither of these encoder types have an
embedding intel_digital_port object, so for these encoder types we will
use random data when dereferencing the corresponding
intel_digital_port->port field.

Introduced in
commit b403745c84592b26a0713e6944c2b109f6df5c82
Author: Damien Lespiau <damien.lespiau@intel.com>
Date:   Mon Aug 4 22:01:33 2014 +0100

    drm/i915: Iterate through the initialized DDIs to prepare their buffers

v2:
- fix getting at the port for MST encoders too
- make sure that intel_prepare_ddi_buffers() gets called for port E too
  (Paulo)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90067
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_ddi.c