Skip to content

chore(nuttx): bump NuttX for the USB resume interrupt fix - #28383

Merged
dakejahl merged 1 commit into
mainfrom
dakejahl/nuttx-usb-resume
Aug 25, 2026
Merged

chore(nuttx): bump NuttX for the USB resume interrupt fix#28383
dakejahl merged 1 commit into
mainfrom
dakejahl/nuttx-usb-resume

Conversation

@dakejahl

Copy link
Copy Markdown
Contributor

Summary

fixes #28340

Bumps the NuttX submodule for PX4/NuttX#393.

Problem

The DWC2-derived USB device drivers never unmasked the WKUP interrupt, so CLASS_RESUME was never delivered. cdcacm_suspend() marks the serial device disconnected; without the matching resume the CDC/ACM port returns -ENOTCONN to every open and write for the rest of the boot. Linux autosuspends the port on close by default, so any CLI tool that opens and closes it kills USB MAVLink until reboot. Affects all 152 in-tree configs with CONFIG_CDCACM=y.

Solution

Unmask WKUP so the existing resume handler runs. Verified on an ARK FMU v6X over forced runtime-suspend cycles.

Brings in PX4/NuttX#393 (backport of apache/nuttx#19936). The DWC2-derived
USB device drivers masked off the WKUP interrupt, so CLASS_RESUME was never
delivered. cdcacm_suspend() marks the serial device disconnected and the
matching resume never runs, leaving the CDC/ACM port returning -ENOTCONN for
the rest of the boot after the first host autosuspend.

Assisted-by: Claude:claude-opus-5[1m]
Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
@github-actions github-actions Bot added kind:chore Maintenance work that keeps the project healthy. scope:dependencies Dependency or submodule updates. labels Aug 25, 2026
@dakejahl
dakejahl merged commit 3540e00 into main Aug 25, 2026
34 checks passed
@dakejahl
dakejahl deleted the dakejahl/nuttx-usb-resume branch August 25, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:chore Maintenance work that keeps the project healthy. scope:dependencies Dependency or submodule updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] USB MAVLink dies permanently after the host closes the port (Linux USB autosuspend + CONFIG_SERIAL_REMOVABLE)

1 participant