From 81e84034e840a80837f89b232e5a65be72366429 Mon Sep 17 00:00:00 2001 From: William Wu Date: Thu, 14 Oct 2021 15:59:17 +0800 Subject: [PATCH] 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 Change-Id: I27634dab473dad9a3e3d500cde7156c3eda514e8 --- drivers/usb/dwc3/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index b1c4e21771bb..1bac00c1512b 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -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: /*