File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -804,8 +804,6 @@ static void drm_dp_destroy_mst_branch_device(struct kref *kref)
804804 struct drm_dp_mst_port * port , * tmp ;
805805 bool wake_tx = false;
806806
807- cancel_work_sync (& mstb -> mgr -> work );
808-
809807 /*
810808 * destroy all ports - don't need lock
811809 * as there are no more references to the mst branch
@@ -1993,6 +1991,8 @@ void drm_dp_mst_topology_mgr_suspend(struct drm_dp_mst_topology_mgr *mgr)
19931991 drm_dp_dpcd_writeb (mgr -> aux , DP_MSTM_CTRL ,
19941992 DP_MST_EN | DP_UPSTREAM_IS_SRC );
19951993 mutex_unlock (& mgr -> lock );
1994+ flush_work (& mgr -> work );
1995+ flush_work (& mgr -> destroy_connector_work );
19961996}
19971997EXPORT_SYMBOL (drm_dp_mst_topology_mgr_suspend );
19981998
@@ -2765,6 +2765,7 @@ EXPORT_SYMBOL(drm_dp_mst_topology_mgr_init);
27652765 */
27662766void drm_dp_mst_topology_mgr_destroy (struct drm_dp_mst_topology_mgr * mgr )
27672767{
2768+ flush_work (& mgr -> work );
27682769 flush_work (& mgr -> destroy_connector_work );
27692770 mutex_lock (& mgr -> payload_lock );
27702771 kfree (mgr -> payloads );
You can’t perform that action at this time.
0 commit comments