OSDN Git Service

drm/i915: avoid reading DP_TP_CTL twice
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 30 Oct 2019 01:24:47 +0000 (18:24 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 4 Nov 2019 21:44:31 +0000 (13:44 -0800)
commit35ac28a88223d64a996535c58b8f0112118a989c
tree0168ebff091b7bc2ac1f12b0d40da5b1a810cb80
parenta687b4ef6e2825162fb58bffaf1556ca68705393
drm/i915: avoid reading DP_TP_CTL twice

Just avoid the additional read in case DP_TP_CTL is enabled:
read it once and save the value.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191030012448.14937-5-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c