]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38b132b6dc7bfa4c8eb74c41e8ffcd2281d8432d
tree2768332a7e28cfe287320b77ef711b82c83feec6
parent3bff7c162ae650fa0d8990bed895489694e2c871
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: 338faaf89bf4 ("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