This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5bd0140d9f risc-v/mpfs: mpfs_usb: fix tx fifo size setup
5bd0140d9f is described below
commit 5bd0140d9f9aaf1d9d9d9b5b73601aacc6617497
Author: Eero Nurkkala <[email protected]>
AuthorDate: Fri Jul 21 12:17:50 2023 +0300
risc-v/mpfs: mpfs_usb: fix tx fifo size setup
Currently TX_FIFO_SIZE is not altered in mpfs_ep_set_fifo_size(),
but all paths (RX and TX) change MPFS_USB_RX_FIFO_SIZE only.
Fix the TX_FIFO_SIZE setup.
Signed-off-by: Eero Nurkkala <[email protected]>
---
arch/risc-v/src/mpfs/mpfs_usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/risc-v/src/mpfs/mpfs_usb.c b/arch/risc-v/src/mpfs/mpfs_usb.c
index 7a5dca4dc7..8f0e11bc20 100644
--- a/arch/risc-v/src/mpfs/mpfs_usb.c
+++ b/arch/risc-v/src/mpfs/mpfs_usb.c
@@ -1339,7 +1339,7 @@ static int mpfs_ep_configure_internal(struct mpfs_ep_s
*privep,
TXCSRL_REG_EPN_STALL_SENT_MASK,
0);
- mpfs_ep_set_fifo_size(epno, 0, maxpacket);
+ mpfs_ep_set_fifo_size(epno, dirin, maxpacket);
/* Give EP0 64 bytes (8*8) and configure 512 bytes for TX fifo.
* This is a pointer to internal RAM where the data should be