You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "itshusky01 (via GitHub)" <gi...@apache.org> on 2026/09/08 12:53:51 UTC
[PR] arch/arm/src/common/stm32: accept interface-recipient GET/SET_DESCRIPTOR [nuttx]
itshusky01 opened a new pull request, #20090:
URL: https://github.com/apache/nuttx/pull/20090
## Summary
HID class devices fetch their HID Report Descriptor with a
`GET_DESCRIPTOR` setup packet whose recipient is an interface
(bmRequestType = 0x81, wValue = 0x2200).
`stm32_ep0out_stdrequest()` only dispatches GET/SET_DESCRIPTOR when the
recipient is the device and stalls every other recipient. As a result,
HID class devices cannot enumerate on the STM32 OTG FS.
This change also dispatches interface-recipient descriptor requests to
the class driver, following the existing device-recipient path.
## Impact
- Bug fix only; no new configuration options, interfaces or data
structures.
- Behavior change is limited to interface-recipient GET/SET_DESCRIPTOR
requests, which previously were always stalled.
- No impact on in-tree classes (CDC/ACM, MSC, RNDIS, ...) that only use
device-recipient descriptor requests.
## Testing
Tested on an STM32F407VET6 board with a custom HID class device
(interrupt IN endpoint) under NuttX releases/13.0, which contains the
same code path as master:
- Before the change: USB enumeration fails, host cannot obtain the HID
Report Descriptor (STALL on GET_DESCRIPTOR, wValue = 0x2200).
- After the change: device enumerates, HID report transfers succeed.
Host: Windows 11 Pro 25H2 (build 26200.9168)
Windows Device Manager shows the device as HID-compliant under USB Input Device.
--
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
Re: [PR] arch/arm/src/common/stm32: accept interface-recipient GET/SET_DESCRIPTOR [nuttx]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20090:
URL: https://github.com/apache/nuttx/pull/20090#issuecomment-5590155538
<!-- membrowse-pr-comment -->
## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
*No memory changes detected for:*
- [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
- [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=08f9a7b9603a904079aae65bc2c29ba14e604a6d&base=f17c6552847d3b14ec2fc6ac0de538ee528d2e4b)
--
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
Re: [PR] arch/arm/src/common/stm32: accept interface-recipient GET/SET_DESCRIPTOR [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #20090:
URL: https://github.com/apache/nuttx/pull/20090
--
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