dwc3: resize txfifo of IN/INT endpoint before enabling it
USB IN/INT endpoint stalls when performing TX FIFO resize functionality when IN/INT endpoint is already active i.e. usb endpoint is enabled and usb request is pending with it. Fix this issue by making sure that TX FIFO resize is performed before enabling endpoint which shall happen after set_alt(1) and before any function queues request with its allocated USB endpoint. Change-Id: I13a590f87ab8492f7c95a15b2da9f00c9c63c4f9 Signed-off-by:Mayank Rana <mrana@codeaurora.org> [jackp@codeaurora.org: squashed with the following: Revert "usb: dwc3: drop FIFO resizing logic" dwc3: gadget: Improve TX FIFO resize functionality dwc3: gadget: Use default TX FIFO size as 1024 bytes with each IN eps usb: gadget: Use mult as 3 for GSI related USB IN endpoint always USB: dwc3: gadget: Fix TxFIFO resizing logic dwc3: Preserve TxFIFO of IN/INT EP for UDC without tx-fifo-resize - modified resize loop to iterate over num_eps instead of num_in_eps ] Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment