OSDN Git Service

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)
committerImre Deak <imre.deak@intel.com>
Wed, 22 Mar 2023 18:31:00 +0000 (20:31 +0200)
commitf2c7959dda614d9b7c6a41510492de39d31705ec
tree38247c3dfdefea2a3aa53b6928e03af4dd3ed8cc
parent67165722c27cc46de112a4e10b450170c8980a6f
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
drivers/gpu/drm/i915/display/intel_tc.c