Skip to content

Commit 9d4c59b

Browse files
committed
Fixup! usb: dwc2: limit "maximum packet size" for split-IN transfers
Control Setup phase transfers needs an 8 byte maxpacket override, or drivers doing a GET with a small buffer as a split transaction would cause broken transfers. Signed-off-by: Jonathan Bell <[email protected]>
1 parent 6727dfe commit 9d4c59b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/dwc2/hcd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,7 @@ static void dwc2_hc_init_xfer(struct dwc2_hsotg *hsotg,
23502350
else
23512351
chan->xfer_buf = urb->setup_packet;
23522352
chan->xfer_len = 8;
2353+
chan->max_packet = 8;
23532354
break;
23542355

23552356
case DWC2_CONTROL_DATA:

0 commit comments

Comments
 (0)