thunderbolt: Add tb_switch_find_by_route()
authorRadion Mirchevsky <radion.mirchevsky@intel.com>
Wed, 4 Oct 2017 12:24:14 +0000 (15:24 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Mar 2018 09:54:10 +0000 (12:54 +0300)
commit8e9267bb3559065fddecf344cb54501704fcb68e
tree25117a9f675d78f4f7aed44d0c43553d269ddda6
parentb6b0ea70f4254139e204870937cdb24d88dfac68
thunderbolt: Add tb_switch_find_by_route()

With the new ICM messaging there is need for find switch by route string
instead of link and depth. Add new function that makes it possible.

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/switch.c
drivers/thunderbolt/tb.h