drm/i915: Don't use link_bw for PLL setup
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 Aug 2015 17:21:46 +0000 (20:21 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 1 Sep 2015 09:31:44 +0000 (12:31 +0300)
commit7e6313a2516dbcd168f4ae36f0abe1a9227106b5
treef18414aa1794f9d3ef5e66bff92254a6548b989a
parent69f92f67b68ab7028ffe15f0eea76b59f8859383
drm/i915: Don't use link_bw for PLL setup

Use port_clock instead of link_bw when picking the PLL parameters for
DP. link_bw may be zero with an eDP 1.4 sink that supports
DP_LINK_RATE_SET so we shouldn't use it for anything other than feed it
to the sink appropriately.

v2: Fix typo in commit message (Sivakumar)

Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[Jani: cherry-picked from future.]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_dp.c