This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 954e84c82a usb: If usb3.0, set the ep0 sssize to cfgdescsize
954e84c82a is described below
commit 954e84c82a293fb9e41832a6129a1fa67d440da4
Author: yangsong8 <[email protected]>
AuthorDate: Wed Oct 9 11:45:18 2024 +0800
usb: If usb3.0, set the ep0 sssize to cfgdescsize
Signed-off-by: yangsong8 <[email protected]>
---
drivers/usbdev/usbdev_fs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usbdev/usbdev_fs.c b/drivers/usbdev/usbdev_fs.c
index 7c0f6633a7..c6b334213e 100644
--- a/drivers/usbdev/usbdev_fs.c
+++ b/drivers/usbdev/usbdev_fs.c
@@ -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;