diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-04-03 09:57:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-04-03 09:57:08 +0000 |
commit | 96522b3eda5023468a7d590f6f339014747da79e (patch) | |
tree | 5cf0b76f43e9c6a3edb8ec8123f1c36301e64a37 /sys/dev/pci/drm | |
parent | 8ad35997a9796b2588fec2a223eecc3579150a95 (diff) |
Revert "drm/dp_mst: Skip validating ports during destruction, just ref"
From Lyude Paul
013b14652972949c5e8446b1e8ca9868780f5c7a in linux 4.19.y/4.19.114
9765635b30756eb74e05e260ac812659c296cd28 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/drm_dp_mst_topology.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/pci/drm/drm_dp_mst_topology.c b/sys/dev/pci/drm/drm_dp_mst_topology.c index 1673fde66d5..85d7a369a3f 100644 --- a/sys/dev/pci/drm/drm_dp_mst_topology.c +++ b/sys/dev/pci/drm/drm_dp_mst_topology.c @@ -1024,25 +1024,9 @@ static struct drm_dp_mst_port *drm_dp_mst_get_port_ref_locked(struct drm_dp_mst_ static struct drm_dp_mst_port *drm_dp_get_validated_port_ref(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port) { struct drm_dp_mst_port *rport = NULL; - mutex_lock(&mgr->lock); - /* - * Port may or may not be 'valid' but we don't care about that when - * destroying the port and we are guaranteed that the port pointer - * will be valid until we've finished - */ -#ifdef notyet - if (current_work() == &mgr->destroy_connector_work) { - kref_get(&port->kref); - rport = port; - } else if (mgr->mst_primary) { - rport = drm_dp_mst_get_port_ref_locked(mgr->mst_primary, - port); - } -#else if (mgr->mst_primary) rport = drm_dp_mst_get_port_ref_locked(mgr->mst_primary, port); -#endif mutex_unlock(&mgr->lock); return rport; } |