Skip to content

Commit 1f66277

Browse files
committed
dcd/dwc2: fix ISO IN endpoint become disabled after incomplete transfer
Signed-off-by: HiFiPhile <admin@hifiphile.com>
1 parent 4e64f3e commit 1f66277

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/portable/synopsys/dwc2/dcd_dwc2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,9 @@ static void handle_incomplete_iso_in(uint8_t rhport) {
11361136
}
11371137
epin->diepctl = depctl.value;
11381138
} else {
1139-
// too many retries, give up
1139+
// too many retries, give up, but keep endpoint activated
11401140
edpt_disable(rhport, epnum | TUSB_DIR_IN_MASK, false);
1141+
epin->diepctl |= DIEPCTL_USBAEP;
11411142
dcd_event_xfer_complete(rhport, epnum | TUSB_DIR_IN_MASK, 0, XFER_RESULT_FAILED, true);
11421143
}
11431144
}

0 commit comments

Comments
 (0)