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>