Commit 5e05784a authored by Li Jun's avatar Li Jun

MLK-18262 usb: cnds3: gadget: correct maxpacketsize to be 512 for HS

In case CONFIG_USB_CDNS3_GADGET_FORCE_HIGHSPEED, we should set
the maxpacketsize to be 512 instead of 1024.
Reviewed-by: 's avatarYe Li <ye.li@nxp.com>
Acked-by: 's avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: 's avatarLi Jun <jun.li@nxp.com>
parent b6e693de
......@@ -57,7 +57,12 @@
#define DEVICE_ADDRESS_MAX 127
/* Endpoint init values */
#ifdef CONFIG_USB_CDNS3_GADGET_FORCE_HIGHSPEED
#define ENDPOINT_MAX_PACKET_LIMIT 512
#else
#define ENDPOINT_MAX_PACKET_LIMIT 1024
#endif
#define ENDPOINT_MAX_STREAMS 15
#define ENDPOINT0_MAX_PACKET_LIMIT 512
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment