summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-04-18 12:42:18 +0200
committerHiFiPhile <[email protected]>2025-04-18 12:46:20 +0200
commitb7a26cc33c793a3fc03ee54e27f48d276405af0d (patch)
tree05ec93651b6673b6ab1f8fe64a4e21e88330af89
parente44f556a951451fd9123cb822683faac324e0450 (diff)
Fix 1st nak retry one frame shorter.
Signed-off-by: HiFiPhile <[email protected]>
-rw-r--r--src/portable/synopsys/dwc2/hcd_dwc2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/synopsys/dwc2/hcd_dwc2.c b/src/portable/synopsys/dwc2/hcd_dwc2.c
index a68455daa..be653fab0 100644
--- a/src/portable/synopsys/dwc2/hcd_dwc2.c
+++ b/src/portable/synopsys/dwc2/hcd_dwc2.c
@@ -748,6 +748,7 @@ static void channel_xfer_in_retry(dwc2_regs_t* dwc2, uint8_t ch_id, uint32_t hci
const dwc2_channel_tsize_t hctsiz = {.value = channel->hctsiz};
edpt->next_pid = hctsiz.pid; // save PID
edpt->uframe_countdown = edpt->uframe_interval - ucount;
+ dwc2->gintsts = GINTSTS_SOF; // SOF flag is probably pending
dwc2->gintmsk |= GINTSTS_SOF;
// already halted, de-allocate channel (called from DMA isr)
channel_dealloc(dwc2, ch_id);