• Dave Airlie's avatar
    drm/dp/mst: fixup handling hotplug on port removal. · df4839fd
    Dave Airlie authored
    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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    df4839fd
drm_dp_mst_topology.c 77.7 KB