thunderbolt: Create XDomain devices for loops back to the host
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 7 Oct 2020 15:19:28 +0000 (18:19 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 11 Nov 2020 07:20:16 +0000 (10:20 +0300)
commit47844ecb8cec2916abaad9c1d1b801f49ed6265d
tree3497aeadafee77f095ab8593e7108a3ee793f251
parentd67274bacb8a2bc2a6cfd2a0cef4963379e3eb26
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 <mika.westerberg@linux.intel.com>
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/xdomain.c