CDC/ACM and PL2303 device drivers: Don't use the max packet size assigned to an endpoint in order to determine the request buffer size. The endpoint has not yet been configured that max packet size may be wrong.

This commit is contained in:
Gregory Nutt
2013-09-05 18:00:16 -06:00
parent 6dae945fb0
commit fb37248343
7 changed files with 68 additions and 15 deletions
+5 -1
View File
@@ -140,7 +140,11 @@
#endif
#ifndef CONFIG_CDCACM_BULKIN_REQLEN
# define CONFIG_CDCACM_BULKIN_REQLEN 96
# ifdef CONFIG_USBDEV_DUALSPEED
# define CONFIG_CDCACM_BULKIN_REQLEN (3 * CONFIG_CDCACM_EPBULKIN_FSSIZE / 2)
# else
# define CONFIG_CDCACM_BULKIN_REQLEN (3 * CONFIG_CDCACM_EPBULKIN_FSSIZE / 2)
# endif
#endif
/* Endpoint number and size (in bytes) of the CDC host-to-device (OUT) data