]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Iterate through the initialized DDIs to prepare their buffers
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Aug 2014 21:01:33 +0000 (22:01 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Apr 2015 09:42:38 +0000 (11:42 +0200)
commit1407c2c719afae802550f5579ec394ae28e02d0d
tree2a9637db41a186834ebc78e0fcea9ffe1a953bd9
parentddb504944429469f6fa5593e426c3e8cee99237a
drm/i915: Iterate through the initialized DDIs to prepare their buffers

Not every DDIs is necessarily connected can be strapped off and, in the
future, we'll have platforms with a different number of default DDI
ports. So, let's only call intel_prepare_ddi_buffers() on DDI ports that
are actually detected.

We also use the opportunity to give a struct intel_digital_port to
intel_prepare_ddi_buffers() as we'll need it in a following patch to
query if the port supports HMDI or not.

On my HSW machine this removes the initialization of a couple of
(unused) DDIs.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_ddi.c