]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use intel_ddi_dp_voltage_max() for HSW/BDW too
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 May 2018 17:03:05 +0000 (20:03 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 May 2018 14:23:40 +0000 (17:23 +0300)
commitc5a56fdf94decffb2d73a4048e8d607a81492d15
treebcc22c363cc3db12126142ee45443e3cd3a57997
parent1390b3d7874a888250d2711d5c8f0764c9a6e137
drm/i915: Use intel_ddi_dp_voltage_max() for HSW/BDW too

Use intel_ddi_dp_voltage_max() for HSW/BDW too instead of letting these
fall through the if ladder in a weird way. This function will look at
the actual buf trans tables we have for HSW/BDW to determine the max
vswing level.

It looks to me like the current code leads HSW port A down the IVB port
A path, HSW port B+ and BDW fall through to the very end. Both cases do
result in the correct max vswing level 2, but it's very hard to see that
from the code.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517170309.28630-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dp.c