[PATCH HACK RFC DNM 12/15] thunderbolt: Refuse to activate DP/USB3/PCIe tunnels
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Tue Nov 24 12:01:41 PST 2026
This is for demonstration purposes for anyone wanting to try out the
series on real hw, keeping in mind the constraints detailed in the
cover letter.
Signed-off-by: Konrad Dybcio <konrad.dybcio at oss.qualcomm.com>
---
drivers/thunderbolt/tunnel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/thunderbolt/tunnel.c b/drivers/thunderbolt/tunnel.c
index 8145657835c5bb060812770a303cbf2649082a55..8b497da596b99d7f9d2e04636caa9896617af2e4 100644
--- a/drivers/thunderbolt/tunnel.c
+++ b/drivers/thunderbolt/tunnel.c
@@ -2430,6 +2430,8 @@ int tb_tunnel_activate(struct tb_tunnel *tunnel)
int res, i;
tb_tunnel_dbg(tunnel, "activating\n");
+ if (!tb_tunnel_is_dma(tunnel))
+ return -EOPNOTSUPP;
/*
* Make sure all paths are properly disabled before enabling
--
2.55.0
More information about the linux-phy
mailing list