usb: If usb3.0, set the ep0 sssize to cfgdescsize

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
yangsong8 2024-10-09 11:45:18 +08:00 committed by Xiang Xiao
parent a27655a5a6
commit 954e84c82a

View file

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