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)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 Apr 2016 18:44:28 +0000 (21:44 +0300)
commit00983519214b61c1b9371ec2ed55a4dde773e384
treec0636959bbde30b6f4b0ab4dfbc04f3fe9130b38
parent8305216ff831ebc47d6335f577448e6c0453fc82
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>
drivers/gpu/drm/i915/intel_ddi.c