summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorJason He <[email protected]>2026-05-22 15:55:12 +0800
committerMattijs Korpershoek <[email protected]>2026-07-22 09:16:16 +0200
commitb6056097247385c24c23ef39ebc04238336d11e2 (patch)
tree5bbe544294447cd019429015ac38c1e3505b8103 /doc/develop
parentb79147bbd47cd2d50836dc0a57376f4820663637 (diff)
usb: ci_udc: verify all dtds are inactive before completing request
According to device mode spec, the ACTIVE status field of dtds should be check to determine whether the transfers completed successfully. However, this is not implemented in handle_ep_complete. When two EPs are enabled and transferring, EPa requests with multiple dtds and EPb request with one dtd. Irq is triggred on EPb. The udc_irq handler finds both EPb's and EPa's ENDPTCOMPLETE=1 while not all of EPa's dtds have been completed. Because ACTIVE status is not checked, this case causes crash in ci_udc driver. Signed-off-by: Jason He <[email protected]> Signed-off-by: Ye Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions