thunderbolt: Allow disabling XDomain protocol
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 22 Oct 2020 10:22:06 +0000 (13:22 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 4 Feb 2021 07:45:25 +0000 (10:45 +0300)
commit5ca67688256a0aeede5cba288eaef4d8e4a9e622
treef1720294f847f5238db5720cc231f64fc7575c78
parent3cd542e6e6afb6fa6c34d4094d498f42e22110f5
thunderbolt: Allow disabling XDomain protocol

This allows disabling XDomain protocol completely if the user does not
plan to use the USB4/Thunderbolt peer-to-peer functionality, or for
security reasons.

XDomain protocol is enabled by default but with this commit it is
possible to disable it by passing "xdomain=0" as module parameter (or
through the kernel command line).

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
drivers/thunderbolt/domain.c
drivers/thunderbolt/icm.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/xdomain.c