]> 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)
commit30194f3f94d42344a53f1198a312cb8e19b26ebb
tree8f93b54602b716c2174fa257b93528449be8160d
parent4790a6edd2c375261a78cda8e408691d8893e3e7
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