thunderbolt: Find XDomain by route instead of UUID
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 7 Oct 2020 14:01:43 +0000 (17:01 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 11 Nov 2020 07:20:16 +0000 (10:20 +0300)
commitd67274bacb8a2bc2a6cfd2a0cef4963379e3eb26
tree69ba685bdc32ce2c946d797f95dde7fe648bf93e
parent81816f5048bac5f4b202ed1443e9788dfc31a18c
thunderbolt: Find XDomain by route instead of UUID

We are going to represent loops back to the host also as XDomains and
they all have the same (host) UUID, so finding them needs to use route
string instead. This also requires that we check if the XDomain device
is added to the bus before its properties can be updated. Otherwise the
remote UUID might not be populated yet.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/xdomain.c