drm/i915/dp_mst: Clear the ACT sent flag during encoder disabling too
authorImre Deak <imre.deak@intel.com>
Tue, 16 Jun 2020 14:18:54 +0000 (17:18 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 23 Jun 2020 07:12:35 +0000 (10:12 +0300)
During encoder enabling we clear the flag before starting the ACT
sequence and wait for the flag, but the clearing is missing during
encoder disabling, add it there too. Since nothing cleared the flag
automatically we could've run subsequent disabling steps too early.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200616141855.746-5-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c

index 2ee538d99ba7ded3487d296239310b6818d189df..e1bc14139f46e8602b80161e9883ad3072c8a914 100644 (file)
@@ -390,6 +390,8 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state,
 
        drm_dp_update_payload_part2(&intel_dp->mst_mgr);
 
+       clear_act_sent(intel_dp);
+
        val = intel_de_read(dev_priv,
                            TRANS_DDI_FUNC_CTL(old_crtc_state->cpu_transcoder));
        val &= ~TRANS_DDI_DP_VC_PAYLOAD_ALLOC;