From: Mika Westerberg Date: Wed, 7 Oct 2020 15:19:28 +0000 (+0300) Subject: thunderbolt: Create XDomain devices for loops back to the host X-Git-Tag: v5.11-rc1~167^2~39^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47844ecb8cec2916abaad9c1d1b801f49ed6265d;p=thirdparty%2Flinux.git thunderbolt: Create XDomain devices for loops back to the host It is perfectly possible to have loops back from the routers to the host, or even from one host port to another. Instead of ignoring these, we create XDomain devices for each. This allows creating services such as DMA traffic test that is used in manufacturing for example. Signed-off-by: Mika Westerberg Acked-by: Yehezkel Bernat Reviewed-by: Greg Kroah-Hartman --- diff --git a/drivers/thunderbolt/xdomain.c b/drivers/thunderbolt/xdomain.c index e436e9efa7e7a..da229ac4e4718 100644 --- a/drivers/thunderbolt/xdomain.c +++ b/drivers/thunderbolt/xdomain.c @@ -961,10 +961,8 @@ static void tb_xdomain_get_uuid(struct work_struct *work) return; } - if (uuid_equal(&uuid, xd->local_uuid)) { + if (uuid_equal(&uuid, xd->local_uuid)) dev_dbg(&xd->dev, "intra-domain loop detected\n"); - return; - } /* * If the UUID is different, there is another domain connected