Skip to content

Commit 42213ef

Browse files
authored
Merge pull request #3063 from maximevince/dwc2-host-fix-sof-flag
dwc2/host: clear SOF flag in handle_sof_irq()
2 parents 60e6d53 + 255ccf2 commit 42213ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/portable/synopsys/dwc2/hcd_dwc2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ static void handle_channel_irq(uint8_t rhport, bool in_isr) {
11821182
static bool handle_sof_irq(uint8_t rhport, bool in_isr) {
11831183
(void) in_isr;
11841184
dwc2_regs_t* dwc2 = DWC2_REG(rhport);
1185+
dwc2->gintsts = GINTSTS_SOF; // Clear the SOF interrupt flag
11851186

11861187
bool more_isr = false;
11871188

0 commit comments

Comments
 (0)