]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: move dp_m_n computation to dp_encoder->compute_config
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Apr 2013 21:42:31 +0000 (23:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Apr 2013 09:29:26 +0000 (11:29 +0200)
commit30992fbfd8a6346a11e3ff834db97a619aa39ead
tree8f93b54602b716c2174fa257b93528449be8160d
parent5db16b71e8cb21622a59278cc84636b645070477
drm/i915: move dp_m_n computation to dp_encoder->compute_config

We need a flag to designate dp encoders and the dp link m_n parameters
in the pipe config for that. And now that the pipe bpp computations
have been moved up and stored in the pipe config, too, we can do this
without losing our sanity.

v2: Rebased on top of Takashi Iwai's fix to (again) fix the target
clock handling for eDP. Luckily the new code is sane enough and just
does the right thing!

v3: Move ->has_dp_encoder to this patch (Jesse).

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h