drm/i915/tc: Fix the ICL PHY ownership check in TC-cold state
authorImre Deak <imre.deak@intel.com>
Thu, 16 Mar 2023 13:17:13 +0000 (15:17 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 27 Mar 2023 10:22:09 +0000 (13:22 +0300)
commit38c583019484f190d5b33f59b8ae810e6b1763c6
tree90b5ca853712fab7b68a3648684e247137f9bfe2
parenta2b6e99d8a623544f3bdccd28ee35b9c1b00daa5
drm/i915/tc: Fix the ICL PHY ownership check in TC-cold state

The commit renaming icl_tc_phy_is_in_safe_mode() to
icl_tc_phy_take_ownership() didn't flip the function's return value
accordingly, fix this up.

This didn't cause an actual problem besides state check errors, since
the function is only used during HW readout.

Cc: José Roberto de Souza <jose.souza@intel.com>
Fixes: f53979d68a77 ("drm/i915/display/tc: Rename safe_mode functions ownership")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230316131724.359612-4-imre.deak@intel.com
(cherry picked from commit f2c7959dda614d9b7c6a41510492de39d31705ec)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_tc.c