drm/dp_mst: Remove port validation in drm_dp_atomic_find_vcpi_slots()
authorLyude Paul <lyude@redhat.com>
Sat, 2 Feb 2019 00:20:02 +0000 (19:20 -0500)
committerLyude Paul <lyude@redhat.com>
Tue, 5 Feb 2019 23:09:00 +0000 (18:09 -0500)
commita3d15c4b0ecd169c77dfdf659b2ff2e502179d19
tree2768332a7e28cfe287320b77ef711b82c83feec6
parent3a8844c298522fa22df4bdd863011e5b639a4e84
drm/dp_mst: Remove port validation in drm_dp_atomic_find_vcpi_slots()

Since we now have an easy way of refcounting drm_dp_mst_port structs and
safely accessing their contents, there isn't any good reason to keep
validating ports here. It doesn't prevent us from performing modesets on
branch devices that have been removed either, and we already disallow
enabling new displays on unregistered connectors in
update_connector_routing() in drm_atomic_check_modeset(). All it does is
cause us to have to make weird special exceptions in our atomic
modesetting code. So, get rid of it entirely.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Fixes: eceae1472467 ("drm/dp_mst: Start tracking per-port VCPI allocations")
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190202002023.29665-3-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c
drivers/gpu/drm/i915/intel_dp_mst.c
drivers/gpu/drm/nouveau/dispnv50/disp.c