Skip to content

Commit f452ab7

Browse files
committed
overwrite grstctl on edpt_disable
1 parent 6ec5174 commit f452ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/portable/synopsys/dwc2/dcd_dwc2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ static void dcd_edpt_disable (uint8_t rhport, uint8_t ep_addr, bool stall)
796796
}
797797

798798
// Flush the FIFO, and wait until we have confirmed it cleared.
799-
dwc2->grstctl |= (epnum << GRSTCTL_TXFNUM_Pos);
799+
dwc2->grstctl = (epnum << GRSTCTL_TXFNUM_Pos);
800800
dwc2->grstctl |= GRSTCTL_TXFFLSH;
801801
while ( (dwc2->grstctl & GRSTCTL_TXFFLSH_Msk) != 0 ) {}
802802
}

0 commit comments

Comments
 (0)