usb: If usb3.0, set the ep0 sssize to cfgdescsize
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
parent
a27655a5a6
commit
954e84c82a
1 changed files with 3 additions and 0 deletions
|
@ -1377,6 +1377,9 @@ static int usbdev_fs_classbind(FAR struct usbdevclass_driver_s *driver,
|
|||
ep0info.fssize = fs->cdev->cfgdescsize;
|
||||
#ifdef CONFIG_USBDEV_DUALSPEED
|
||||
ep0info.hssize = fs->cdev->cfgdescsize;
|
||||
#endif
|
||||
#ifdef CONFIG_USBDEV_SUPERSPEED
|
||||
ep0info.sssize = fs->cdev->cfgdescsize;
|
||||
#endif
|
||||
ep0info.reqnum = CONFIG_USBDEV_FS_NEP0REQS;
|
||||
fs->eps[0].dev = fs;
|
||||
|
|
Loading…
Reference in a new issue