]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display/adl_p: Drop earlier return in tc_has_modular_fia()
authorJosé Roberto de Souza <jose.souza@intel.com>
Mon, 24 May 2021 21:48:01 +0000 (14:48 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 25 May 2021 17:30:23 +0000 (10:30 -0700)
commit68b87ef252e0af8012afc6b92c727a05f9cde602
treeac99eedcc2485c281b9b33a39f7ed8e1daf6ee92
parent0f926e5cc8c0050bbcebce887be0b6b9780a0b50
drm/i915/display/adl_p: Drop earlier return in tc_has_modular_fia()

MODULAR_FIA_MASK is set in adl_p so we can drop this ealier return
and read registers.
Also to avoid warnings from icl_tc_port_assert_ref_held() when
calling tc_cold_block() in this functions it is necessary to held the
lock.

Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210524214805.259692-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_tc.c