driver: udc: trigger queued transfer on halt clear
Submit USBFSOTG_EVT_XFER on halt clear to allow queued transfers to execute as soon as endpoint STALL is cleared. Signed-off-by: Mark Wang <yichang.wang@nxp.com>
This commit is contained in:
parent
d0224ab19f
commit
31df41ee11
1 changed files with 2 additions and 1 deletions
|
@ -821,7 +821,8 @@ static int usbfsotg_ep_clear_halt(const struct device *dev,
|
|||
if (USB_EP_GET_IDX(cfg->addr) == 0U) {
|
||||
usbfsotg_resume_tx(dev);
|
||||
} else {
|
||||
/* TODO: trigger queued transfers? */
|
||||
/* trigger queued transfers */
|
||||
usbfsotg_event_submit(dev, cfg->addr, USBFSOTG_EVT_XFER);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue