drm/i915/tc: Remove redundant wakeref=0 check from unblock_tc_cold()
authorImre Deak <imre.deak@intel.com>
Thu, 23 Mar 2023 14:20:23 +0000 (16:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 3 Apr 2023 08:35:31 +0000 (11:35 +0300)
After the previous patch unblock_tc_cold() will not be called in a
disconnected mode, so the wakeref passed to it will be always non-zero.
Remove the redundant check.

Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230323142035.1432621-18-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_tc.c

index 7b1b4d6..02fdb8d 100644 (file)
@@ -150,14 +150,6 @@ tc_cold_unblock(struct intel_tc_port *tc, enum intel_display_power_domain domain
 {
        struct drm_i915_private *i915 = tc_to_i915(tc);
 
-       /*
-        * wakeref == -1, means some error happened saving save_depot_stack but
-        * power should still be put down and 0 is a invalid save_depot_stack
-        * id so can be used to skip it for non TC legacy ports.
-        */
-       if (wakeref == 0)
-               return;
-
        intel_display_power_put(i915, domain, wakeref);
 }