summaryrefslogtreecommitdiff
path: root/lib/rt-thread
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-13 00:18:55 +0700
committerhathach <[email protected]>2026-06-13 23:34:57 +0700
commit1ea385a6c431cee759695515a4bed94c6dff65c6 (patch)
tree34f4b64cd7da5bfff44bb830e4b894f9a3ca653e /lib/rt-thread
parentb21d59f8177af967e2b2757c4ef996df00d1e617 (diff)
dcd/musb: check SentStall/SetupEnd before DATAEND guard
MUSBMHDRC 21.1.5 requires the EP0 service routine to check SentStall and SetupEnd first; the early DATAEND return ran before both, and SentStall is most likely to fire exactly while DataEnd may still read back set (auto-STALL after DataEnd, 21.1.7), which would skip the recovery. The guard also moves below the RXRDY block so a coalesced DATAEND|RXRDY read cannot swallow a SETUP on cores where the CPU-set-only DataEnd bit reads back 1; the comment documents the vendor-dependent read-back. Review follow-up for #3643 (dcd_musb.c l.445 finding). Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'lib/rt-thread')
0 files changed, 0 insertions, 0 deletions