usb: designware: allow maxpktsize >= 1024

Change-Id: I25a1bc2be8e5b4028a360d80411d4e0182a50c99
This commit is contained in:
mojyack 2026-01-03 18:04:49 +09:00
parent 3dff77460d
commit c41242615e

View file

@ -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)