aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2019-01-10 19:53:31 -0500
committerLyude Paul <lyude@redhat.com>2019-01-10 20:12:22 -0500
commita68f9917721bba02de43f728e31426f2384cb961 (patch)
tree8c1dfdf5e3b5495a5f72a4d8701c7b64b21caa53 /drivers/gpu/drm
parent56d1c14ecfe81d5d3bc69097881ef2f60fc4c80e (diff)
drm/dp_mst: Stop releasing VCPI when removing ports from topology
This has never actually worked, and isn't needed anyway: the driver's always going to try to deallocate VCPI when it tears down the display that the VCPI belongs to. Signed-off-by: Lyude Paul <lyude@redhat.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Daniel Vetter <daniel@ffwll.ch> Cc: David Airlie <airlied@redhat.com> Cc: Jerry Zuo <Jerry.Zuo@amd.com> Cc: Juston Li <juston.li@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190111005343.17443-9-lyude@redhat.com
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/drm_dp_mst_topology.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 7a251905b3c4..bb9107852fed 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -1177,8 +1177,6 @@ static void drm_dp_destroy_port(struct kref *kref)
1177 struct drm_dp_mst_topology_mgr *mgr = port->mgr; 1177 struct drm_dp_mst_topology_mgr *mgr = port->mgr;
1178 1178
1179 if (!port->input) { 1179 if (!port->input) {
1180 port->vcpi.num_slots = 0;
1181
1182 kfree(port->cached_edid); 1180 kfree(port->cached_edid);
1183 1181
1184 /* 1182 /*
@@ -3487,12 +3485,6 @@ static void drm_dp_destroy_connector_work(struct work_struct *work)
3487 drm_dp_port_teardown_pdt(port, port->pdt); 3485 drm_dp_port_teardown_pdt(port, port->pdt);
3488 port->pdt = DP_PEER_DEVICE_NONE; 3486 port->pdt = DP_PEER_DEVICE_NONE;
3489 3487
3490 if (!port->input && port->vcpi.vcpi > 0) {
3491 drm_dp_mst_reset_vcpi_slots(mgr, port);
3492 drm_dp_update_payload_part1(mgr);
3493 drm_dp_mst_put_payload_id(mgr, port->vcpi.vcpi);
3494 }
3495
3496 drm_dp_mst_put_port_malloc(port); 3488 drm_dp_mst_put_port_malloc(port);
3497 send_hotplug = true; 3489 send_hotplug = true;
3498 } 3490 }