]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/dp/mst: deallocate payload on port destruction
authorMykola Lysenko <Mykola.Lysenko@amd.com>
Wed, 27 Jan 2016 14:39:36 +0000 (09:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:21 +0000 (15:07 -0800)
commit381e33c23c0acc1eb64fb1fe3a245b72da9484ea
tree738548d55a5044e50cf0c4bf1230f335f46428bb
parenta252d13f411ff3dc7697da09a991f1a4a7065d23
drm/dp/mst: deallocate payload on port destruction

commit 91a25e463130c8e19bdb42f2d827836c7937992e upstream.

This is needed to properly deallocate port payload
after downstream branch get unplugged.

In order to do this unplugged MST topology should
be preserved, to find first alive port on path to
unplugged MST topology, and send payload deallocation
request to branch device of found port.

For this mstb and port kref's are used in reversed
order to track when port and branch memory could be
freed.

Added additional functions to find appropriate mstb
as described above.

Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_dp_mst_topology.c