usb: designware: allow maxpktsize >= 1024

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit c41242615e6478a13051250b1985966e083fdb6d
Author: mojyack <[email protected]>
Date:   Sat Jan 3 18:04:49 2026 +0900

    usb: designware: allow maxpktsize >= 1024
    
    Change-Id: I25a1bc2be8e5b4028a360d80411d4e0182a50c99

diff --git a/firmware/drivers/usb-designware.c b/firmware/drivers/usb-designware.c
index 6647b9d29c..7233f873ed 100644
--- a/firmware/drivers/usb-designware.c
+++ b/firmware/drivers/usb-designware.c
@@ -212,7 +212,7 @@ static struct usb_dw_ep *usb_dw_get_ep(int epnum, enum usb_dw_epdir epdir)
 
 static uint32_t usb_dw_maxpktsize(int epnum, enum usb_dw_epdir epdir)
 {
-    return epnum ? DWC_EPCTL(epnum, epdir) & 0x3ff : 64;
+    return epnum ? DWC_EPCTL(epnum, epdir) & 0x7ff : 64;
 }
 
 static uint32_t usb_dw_maxxfersize(int epnum, enum usb_dw_epdir epdir)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.