Files
u-boot-krane/drivers/usb/gadget
Jason HeandMattijs Korpershoek b605609724 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 <jason.he_1@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Link: https://patch.msgid.link/20260522075512.1291485-3-ye.li@nxp.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
2026-07-22 09:16:16 +02:00
..
2026-06-25 14:58:13 -06:00