diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-10-22 12:22:06 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-02-04 08:45:25 +0100 |
commit | 5ca67688256a0aeede5cba288eaef4d8e4a9e622 (patch) | |
tree | f1720294f847f5238db5720cc231f64fc7575c78 /drivers/thunderbolt/tb.h | |
parent | thunderbolt: Add support for PCIe tunneling disabled (SL5) (diff) | |
download | linux-5ca67688256a0aeede5cba288eaef4d8e4a9e622.tar.xz linux-5ca67688256a0aeede5cba288eaef4d8e4a9e622.zip |
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>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r-- | drivers/thunderbolt/tb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index 37679b54808d..84416d8eb988 100644 --- a/drivers/thunderbolt/tb.h +++ b/drivers/thunderbolt/tb.h @@ -958,6 +958,7 @@ static inline u64 tb_downstream_route(struct tb_port *port) | ((u64) port->port << (port->sw->config.depth * 8)); } +bool tb_is_xdomain_enabled(void); bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type, const void *buf, size_t size); struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent, |