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)
commitf21e8b80b79d77872e88d853032294ba5bde0bc4
treee8a09c15681574a9926a743faa3066506d55cdb6
parent0fbae9d2db851e18ec413da2eba9d875269660e0
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