Skip to content

Commit e8d6336

Browse files
committed
Merge tag 'thunderbolt-for-v5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-next
Mika writes: thunderbolt: Changes for v5.16 merge window This includes following Thunderbolt/USB4 changes for the v5.16 merge window: * Re-enable retry logic for control packets in domain needed by some controllers when software connection manager is being used * Fix -Wrestrict build warning emitted by gcc-11. Both have been in linux-next with no reported issues. * tag 'thunderbolt-for-v5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt: thunderbolt: Fix -Wrestrict warning thunderbolt: Enable retry logic for intra-domain control packets
2 parents 9e894ee + 0a0624a commit e8d6336

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/thunderbolt/ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
#define TB_CTL_RX_PKG_COUNT 10
20-
#define TB_CTL_RETRIES 1
20+
#define TB_CTL_RETRIES 4
2121

2222
/**
2323
* struct tb_ctl - Thunderbolt control channel

drivers/thunderbolt/xdomain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
730730

731731
/* Full buffer size except new line and null termination */
732732
get_modalias(svc, buf, PAGE_SIZE - 2);
733-
return sprintf(buf, "%s\n", buf);
733+
return strlen(strcat(buf, "\n"));
734734
}
735735
static DEVICE_ATTR_RO(modalias);
736736

0 commit comments

Comments
 (0)