Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.37 Manually rebased patch: generic/hack-6.12/902-debloat_proc.patch[1] New Kconfig symbol: x86: enable MITIGATION_TSA[2] All other patches are automatically refreshed. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.37&id=ead91de35d9cd5c4f80ec51e6020f342079170af [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.37&id=7a0395f6607a5d01e2b2a86355596b3f1224acbd Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/19317 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 86351d416b37cbeeccd96b24bac9fab9feadef0c Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Fri, 10 Mar 2023 14:21:42 +0000
|
|
Subject: [PATCH] usb: xhci: drop and add the endpoint context in
|
|
xhci_fixup_endpoint()
|
|
|
|
Setting both the Drop and Add bits on the input context prevents the
|
|
corruption of split transactions seen with the BCM2711 XHCI controller,
|
|
which is a dwc3 variant.
|
|
|
|
This is a downstream feature that allows usbhid to restrict polling
|
|
intervals on mice and keyboards, and was only tested on a VL805 which
|
|
didn't complain about the fact the endpoint got added twice.
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
drivers/usb/host/xhci.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/usb/host/xhci.c
|
|
+++ b/drivers/usb/host/xhci.c
|
|
@@ -1606,7 +1606,7 @@ static void xhci_fixup_endpoint(struct u
|
|
return;
|
|
}
|
|
ctrl_ctx->add_flags = xhci_get_endpoint_flag_from_index(ep_index);
|
|
- ctrl_ctx->drop_flags = 0;
|
|
+ ctrl_ctx->drop_flags = ctrl_ctx->add_flags;
|
|
|
|
spin_unlock_irqrestore(&xhci->lock, flags);
|
|
|