]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/cnl: Fix DP max voltage
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 31 Aug 2017 14:53:56 +0000 (07:53 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 31 Aug 2017 16:31:58 +0000 (09:31 -0700)
commit9c6f5d67b1bedcc1c7d1051093d146b52b07bde6
tree7b29445a25d967723d84f50d63c819ef4629c8fe
parentb95c099a2b1e64317d47e69ac6e2778c32a66ff3
drm/i915/cnl: Fix DP max voltage

On clock recovery this function is called to find out
the max voltage swing level that we could go.

However gen 9 functions use the old buffer translation tables
to figure that out. That table is not valid for CNL
causing an invalid number of entries and an invalid selection
on the max voltage swing level.

v2: Let's use same approach that previous platforms.
v3: Actually use n_entries and avoid duplicated -1.
v4: Avoid cnl_max_level and use current style.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Clint Taylor <clinton.a.taylor@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170831145356.15932-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_ddi.c