drm/dp/mst: fixup handling hotplug on port removal.
authorDave Airlie <airlied@redhat.com>
Wed, 16 Sep 2015 00:37:28 +0000 (10:37 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Oct 2015 05:34:40 +0000 (15:34 +1000)
commitdf4839fdc9b3c922586b945f062f38cbbda022bb
tree8ff48911fd93882d61dbaee4ee086e9300717972
parent1c960876be7cffd2798a9e2be090e0a5afaee895
drm/dp/mst: fixup handling hotplug on port removal.

output ports should always have a connector, unless
in the rare case connector allocation fails in the
driver.

In this case we only need to teardown the pdt,
and free the struct, and there is no need to
send a hotplug msg.

In the case were we add the port to the destroy
list we need to send a hotplug if we destroy
any connectors, so userspace knows to reprobe
stuff.

this patch also handles port->connector allocation
failing which should be a rare event, but makes
the code consistent.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c