Commit 8da7e8dc004ed87d1fd3942959b6d12fc491e86b
Committed by
Ye Li
1 parent
aa350b6d84
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
5 other branches
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: Ye Li <ye.li@nxp.com> Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit 5e05784a89ec2fbbda9298f2c74ade134213b8c4)
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/usb/cdns3/gadget.h
... | ... | @@ -57,7 +57,12 @@ |
57 | 57 | #define DEVICE_ADDRESS_MAX 127 |
58 | 58 | |
59 | 59 | /* Endpoint init values */ |
60 | +#ifdef CONFIG_USB_CDNS3_GADGET_FORCE_HIGHSPEED | |
61 | +#define ENDPOINT_MAX_PACKET_LIMIT 512 | |
62 | +#else | |
60 | 63 | #define ENDPOINT_MAX_PACKET_LIMIT 1024 |
64 | +#endif | |
65 | + | |
61 | 66 | #define ENDPOINT_MAX_STREAMS 15 |
62 | 67 | |
63 | 68 | #define ENDPOINT0_MAX_PACKET_LIMIT 512 |