Files
linux/drivers
Jonathan Bell dc30fdb974 usb: dwc2: limit "maximum packet size" for split-IN transfers
dwc2_hc_start_transfer() overwrites hc->xfer_len for split-IN transfers.
Drivers may not allocate buffers that are multiples of the endpoint max
packet size, which may cause buffer overruns in the last transfer.

The hardware needs HCTSIZ to be set to a multiple of HCCHAR.MPS, so trim
chan->max_packet in dwc2_assign_and_init_hc().

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
2025-11-24 14:23:39 +00:00
..
2025-11-24 14:23:17 +00:00
2025-10-01 00:00:45 +00:00
2025-09-29 00:17:22 +02:00
2025-11-24 14:23:06 +00:00
2025-11-24 14:23:28 +00:00
2025-11-24 14:23:29 +00:00
2025-09-22 09:35:21 -04:00
2025-11-24 14:07:37 +00:00
2025-11-24 14:23:20 +00:00
2025-11-24 14:23:28 +00:00
2025-11-17 16:58:25 -08:00
2025-11-24 14:23:34 +00:00
2025-10-01 07:24:43 -04:00
2025-11-24 14:23:20 +00:00