1 From 3332d0fc788ad59620b58e0da94f734b337775ce Mon Sep 17 00:00:00 2001
2 From: Jonathan Bell <jonathan@raspberrypi.com>
3 Date: Fri, 10 Mar 2023 14:21:42 +0000
4 Subject: [PATCH 0163/1085] usb: xhci: drop and add the endpoint context in
7 Setting both the Drop and Add bits on the input context prevents the
8 corruption of split transactions seen with the BCM2711 XHCI controller,
9 which is a dwc3 variant.
11 This is a downstream feature that allows usbhid to restrict polling
12 intervals on mice and keyboards, and was only tested on a VL805 which
13 didn't complain about the fact the endpoint got added twice.
15 Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
17 drivers/usb/host/xhci.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 --- a/drivers/usb/host/xhci.c
21 +++ b/drivers/usb/host/xhci.c
22 @@ -1576,7 +1576,7 @@ static void xhci_fixup_endpoint(struct u
25 ctrl_ctx->add_flags = xhci_get_endpoint_flag_from_index(ep_index);
26 - ctrl_ctx->drop_flags = 0;
27 + ctrl_ctx->drop_flags = ctrl_ctx->add_flags;
29 spin_unlock_irqrestore(&xhci->lock, flags);