usb: dwc3: gadget: increase intr ep resize tx fifo to 64B

For RV1109/RV1126 platforms, it resizes the tx fifos for
all of the usb device endpoints by default, it aims to
support UVC composite device, so just only set 16 bytes
for the tx fifo of the intr endpoints. But for the other
USB functions, like MTP function, it requires 64 bytes
tx fifo for its intr endpoint.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I27634dab473dad9a3e3d500cde7156c3eda514e8
This commit is contained in:
William Wu
2021-10-14 15:59:17 +08:00
parent 00b9fb0f42
commit 81e84034e8

View File

@@ -268,10 +268,10 @@ static int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc)
/*
* REVIST: we assume that the maxpacket of interrupt
* endpoint is 16 Bytes.
* endpoint is 64 Bytes for MTP and the other functions.
*/
mult = 1;
maxpacket = 16;
maxpacket = 64;
break;
default:
/*