]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/mg: Use tc_port instead of port parameter to MG registers
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 1 Oct 2019 19:37:29 +0000 (12:37 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 2 Oct 2019 19:07:42 +0000 (12:07 -0700)
commit86ee54e8846db02c4080ec42a72a662651b1d4dc
treee8a09c15681574a9926a743faa3066506d55cdb6
parentf7b8fd95643a13fef193ae9a9d6bffc513622f84
drm/i915/mg: Use tc_port instead of port parameter to MG registers

All the MG registers is based on the tc_port not port, so
MG_PHY_PORT_LN() was subtracting port and PORT_C what is very
fragile.
So replacing port to tc_port in all MG register macros and users
like we have for DKL.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191001193729.123736-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/i915_reg.h