]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: Fix MG_DP_MODE() register programming
authorImre Deak <imre.deak@intel.com>
Fri, 19 Apr 2019 07:10:26 +0000 (10:10 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 23 Apr 2019 08:05:07 +0000 (11:05 +0300)
commitb60e49ce1e1414c0844d043e9cb373b03ad0874a
treeede0121da0ffd7f223848eb840d4980cc56fe1a9
parentd12469054d1d5b97883693b264adb34041bbb14b
drm/i915/icl: Fix MG_DP_MODE() register programming

Fix the order of lane, port parameters passed to the register macro.

Note that this was already partly fixed by commit
a7f35b24448fb ("drm/i915: Call MG_DP_MODE() macro with the right parameters order")

While at it simplify things by using the macro directly instead of an
unnecessary redirection via an array.

v2:
- Add a note the commit message about simplifying things. (José)

Fixes: e4573596466f0 ("drm/i915: Make MG PHY macros semantically consistent")
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Aditya Swarup <aditya.swarup@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190419071026.32370-1-imre.deak@intel.com
drivers/gpu/drm/i915/intel_ddi.c