Skip to content

Commit b55fe36

Browse files
committed
Merge tag 'thunderbolt-for-v6.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-linus
Mika writes: thunderbolt: Fix for v6.8-rc4 This includes one USB4/Thunderbolt fix for v6.8-rc4: - Correct the CNS (CM TBT3 Not Supported) bit setting for USB4 routers. This has been in linux-next with no reported issues. * tag 'thunderbolt-for-v6.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt: thunderbolt: Fix setting the CNS bit in ROUTER_CS_5
2 parents 54be6c6 + ec4d82f commit b55fe36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/thunderbolt/tb_regs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ struct tb_regs_switch_header {
203203
#define ROUTER_CS_5_WOP BIT(1)
204204
#define ROUTER_CS_5_WOU BIT(2)
205205
#define ROUTER_CS_5_WOD BIT(3)
206-
#define ROUTER_CS_5_C3S BIT(23)
206+
#define ROUTER_CS_5_CNS BIT(23)
207207
#define ROUTER_CS_5_PTO BIT(24)
208208
#define ROUTER_CS_5_UTO BIT(25)
209209
#define ROUTER_CS_5_HCO BIT(26)

drivers/thunderbolt/usb4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ int usb4_switch_setup(struct tb_switch *sw)
290290
}
291291

292292
/* TBT3 supported by the CM */
293-
val |= ROUTER_CS_5_C3S;
293+
val &= ~ROUTER_CS_5_CNS;
294294

295295
return tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
296296
}

0 commit comments

Comments
 (0)