summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorGunar Schorcht <[email protected]>2023-02-27 09:54:45 +0100
committerGunar Schorcht <[email protected]>2023-02-27 09:54:45 +0100
commit4c510c12b1d0a0bfb0726c0100ff22cd892aa1e8 (patch)
treeb697f95eadc8f0ef139030b10ab7bc01b9bf0028 /src/portable
parent65ac519715ea0ecace08b183f2d8730d0450affd (diff)
synopsys/dwc2: fix SOF interrupt handling
SOF is not a flag of the GOTGINT register but of the GINTSTS register. Therefore the flag must be written in the GINTSTS register instead of the GOTGINT register to clear the interrupt.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/synopsys/dwc2/dcd_dwc2.c2
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 c6132a1f5..7d4f31c48 100644
--- a/src/portable/synopsys/dwc2/dcd_dwc2.c
+++ b/src/portable/synopsys/dwc2/dcd_dwc2.c
@@ -1288,7 +1288,7 @@ void dcd_int_handler(uint8_t rhport)
if(int_status & GINTSTS_SOF)
{
- dwc2->gotgint = GINTSTS_SOF;
+ dwc2->gintsts = GINTSTS_SOF;
if (_sof_en)
{