summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorDan Vacura <w36195@motorola.com>2022-04-20 20:33:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-21 19:17:43 +0200
commit6a7c7df993bd3c90014453ec59a7b455613cf0e4 (patch)
tree31cc2b5152a334a1764b94de298b389430a9c1a5 /drivers/usb/dwc3
parentusb: host: ohci-omap: Make it CCF clk API compatible (diff)
downloadlinux-6a7c7df993bd3c90014453ec59a7b455613cf0e4.tar.xz
linux-6a7c7df993bd3c90014453ec59a7b455613cf0e4.zip
usb: dwc3: gadget: increase tx fifo size for ss isoc endpoints
Improve performance of isoc transfers in superspeed by increasing the number of possible endpoints available, matching that of what was configured for bulk transfers. Signed-off-by: Dan Vacura <w36195@motorola.com> Link: https://lore.kernel.org/r/20220420183338.445622-1-w36195@motorola.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 66a256c47514..c3d95f9b010b 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -782,7 +782,8 @@ static int dwc3_gadget_resize_tx_fifos(struct dwc3_ep *dep)
num_fifos = 3;
if (dep->endpoint.maxburst > 6 &&
- usb_endpoint_xfer_bulk(dep->endpoint.desc) && DWC3_IP_IS(DWC31))
+ (usb_endpoint_xfer_bulk(dep->endpoint.desc) ||
+ usb_endpoint_xfer_isoc(dep->endpoint.desc)) && DWC3_IP_IS(DWC31))
num_fifos = dwc->tx_fifo_resize_max_num;
/* FIFO size for a single buffer */