Skip to content

Commit 861e9a0

Browse files
P33Mpelwell
authored andcommitted
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 381450e commit 861e9a0

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
@@ -2338,6 +2338,7 @@ static void dwc2_hc_init_xfer(struct dwc2_hsotg *hsotg,
23382338
else
23392339
chan->xfer_buf = urb->setup_packet;
23402340
chan->xfer_len = 8;
2341+
chan->max_packet = 8;
23412342
break;
23422343

23432344
case DWC2_CONTROL_DATA:

0 commit comments

Comments
 (0)