]> 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)
commitafad3c9d76797fd3b3afcf020f5f7046be54ed77
tree8ff48911fd93882d61dbaee4ee086e9300717972
parent550181a371be21b138557a26700ab0b9a9b14783
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