thunderbolt: Add tb_xdomain_find_by_route()
authorRadion Mirchevsky <radion.mirchevsky@intel.com>
Wed, 4 Oct 2017 11:53:54 +0000 (14:53 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Mar 2018 09:54:10 +0000 (12:54 +0300)
commit484cb153fe5ffcd0b7cf423cf29aaeadd0e862b1
treea4b3edd4af00e2f615fc38966b7eaecc6c163f86
parent8e9267bb3559065fddecf344cb54501704fcb68e
thunderbolt: Add tb_xdomain_find_by_route()

This is needed by the new ICM interface to find xdomains by route string
instead of link and depth.

While there update existing tb_xdomain_find_* functions to use
tb_xdomain_get() instead of open-coding the same.

Signed-off-by: Radion Mirchevsky <radion.mirchevsky@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/thunderbolt/xdomain.c
include/linux/thunderbolt.h