]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71611bfe4968fe5d3f498d975c84a2b1757f6e85
tree8ff48911fd93882d61dbaee4ee086e9300717972
parentc99367205337bf67bcc240742540bde8c0cbfc6a
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