drm/display/dp_mst: Fix down/up message handling after sink disconnect
authorjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 07:32:07 +0000 (07:32 +0000)
committerjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 07:32:07 +0000 (07:32 +0000)
From Imre Deak
b30fcedeba643ca16eaa6212c1245598b7cd830d in linux-6.1.y/6.1.18
1d082618bbf3b6755b8cc68c0a8122af2842d593 in mainline linux

sys/dev/pci/drm/display/drm_dp_mst_topology.c

index 3d4c084..9f5ce28 100644 (file)
@@ -3654,6 +3654,9 @@ int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool ms
                drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL, 0);
                ret = 0;
                mgr->payload_id_table_cleared = false;
+
+               memset(&mgr->down_rep_recv, 0, sizeof(mgr->down_rep_recv));
+               memset(&mgr->up_req_recv, 0, sizeof(mgr->up_req_recv));
        }
 
 out_unlock: