drm/i915: Fix eDP low vswing for Broadwell
authorMika Kahola <mika.kahola@intel.com>
Wed, 20 Apr 2016 12:39:02 +0000 (15:39 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 27 Apr 2016 07:54:35 +0000 (10:54 +0300)
commit992e7a41f9fcc7bcd10e7d346aee5ed7a2c241cb
tree6fc5ef144170b50f1b2073d7abc0371b49d0112a
parent5eaa60c7109b40f17ac81090bc8b90482da76cd1
drm/i915: Fix eDP low vswing for Broadwell

It was noticed on bug #94087 that module parameter
i915.edp_vswing=2 that should override the VBT setting
to use default voltage swing (400 mV) was not applied
for Broadwell.

This patch provides a fix for this by checking if default
i.e. higher voltage swing is requested to be used and
applies the DDI translations table for DP instead of eDP
(low vswing) table.

v2: Combine two if statements into one (Jani)
v3: Change dev_priv->edp_low_vswing to use dev_priv->vbt.edp.low_vswing

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94087
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461155942-7749-1-git-send-email-mika.kahola@intel.com
Cc: stable@vger.kernel.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
(cherry picked from commit 00983519214b61c1b9371ec2ed55a4dde773e384)
[Jani: s/dev_priv->vbt.edp.low_vswing/dev_priv->edp_low_vswing/ to backport]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_ddi.c