summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/usb4.c
diff options
context:
space:
mode:
authorMohammad Rahimi <rahimi.mhmmd@gmail.com>2024-01-27 04:26:28 +0100
committerMika Westerberg <mika.westerberg@linux.intel.com>2024-01-29 08:48:40 +0100
commitec4d82f855ce332de26fe080892483de98cc1a19 (patch)
tree486db0ac56020bf53fb1fe9ab29c579ada68cde3 /drivers/thunderbolt/usb4.c
parentLinux 6.8-rc2 (diff)
downloadlinux-ec4d82f855ce332de26fe080892483de98cc1a19.tar.xz
linux-ec4d82f855ce332de26fe080892483de98cc1a19.zip
thunderbolt: Fix setting the CNS bit in ROUTER_CS_5
The bit 23, CM TBT3 Not Supported (CNS), in ROUTER_CS_5 indicates whether a USB4 Connection Manager is TBT3-Compatible and should be: 0b for TBT3-Compatible 1b for Not TBT3-Compatible Fixes: b04079837b20 ("thunderbolt: Add initial support for USB4") Cc: stable@vger.kernel.org Signed-off-by: Mohammad Rahimi <rahimi.mhmmd@gmail.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/usb4.c')
-rw-r--r--drivers/thunderbolt/usb4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/usb4.c b/drivers/thunderbolt/usb4.c
index f8f0d24ff6e4..1515eff8cc3e 100644
--- a/drivers/thunderbolt/usb4.c
+++ b/drivers/thunderbolt/usb4.c
@@ -290,7 +290,7 @@ int usb4_switch_setup(struct tb_switch *sw)
}
/* TBT3 supported by the CM */
- val |= ROUTER_CS_5_C3S;
+ val &= ~ROUTER_CS_5_CNS;
return tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
}