You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/10 12:57:52 UTC
[GitHub] [incubator-nuttx] spiriou commented on pull request #2097: usbdev: composite: update USB_REQ_SETCONFIGURATION logic
spiriou commented on PR #2097:
URL: https://github.com/apache/incubator-nuttx/pull/2097#issuecomment-1094268274
> @spiriou do we still need this patch?
@xiaoxiang781216 It has been 2 years without anyone else reporting usbdev composite problems so either there is no problem, or no one uses this feature.
The problem I had is still the same and not fixed, see description above. To me usbdev composite with more than 1 device is broken and cannot work because composite driver expects at least one usbdev driver to call `EP_SUBMIT(dev->ep0, ctrlreq)` when handling `USB_REQ_SETCONFIGURATION` (see `dispatched = true;` in this PR). This leads to all the usbdev under the composite device calling `EP_SUBMIT(dev->ep0, ctrlreq)` where usb host expects only one reply, leading to corruption.
The complexity in this fix is that all the usbdev drivers must be updated to not send `USB_REQ_SETCONFIGURATION` reply when calling CLASS_SETUP() if usbdev composite is enabled, which requires testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org