diff options
| author | Pascal Speck <[email protected]> | 2022-05-03 09:52:10 +0200 |
|---|---|---|
| committer | Pascal Speck <[email protected]> | 2022-05-03 09:52:10 +0200 |
| commit | f452ab745ef953d74704bc5429ff16a80a5b325a (patch) | |
| tree | 2075f64e7bd93068f2663bcc6c58e69aa8794798 /src | |
| parent | 6ec5174d8b24d1f01a443c74a0a3dbee00523efc (diff) | |
overwrite grstctl on edpt_disable
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/synopsys/dwc2/dcd_dwc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c index c71f38d2d..01b74d05e 100644 --- a/src/portable/synopsys/dwc2/dcd_dwc2.c +++ b/src/portable/synopsys/dwc2/dcd_dwc2.c @@ -796,7 +796,7 @@ static void dcd_edpt_disable (uint8_t rhport, uint8_t ep_addr, bool stall) } // Flush the FIFO, and wait until we have confirmed it cleared. - dwc2->grstctl |= (epnum << GRSTCTL_TXFNUM_Pos); + dwc2->grstctl = (epnum << GRSTCTL_TXFNUM_Pos); dwc2->grstctl |= GRSTCTL_TXFFLSH; while ( (dwc2->grstctl & GRSTCTL_TXFFLSH_Msk) != 0 ) {} } |
