diff options
| author | Gunar Schorcht <[email protected]> | 2023-02-27 09:54:45 +0100 |
|---|---|---|
| committer | Gunar Schorcht <[email protected]> | 2023-02-27 09:54:45 +0100 |
| commit | 4c510c12b1d0a0bfb0726c0100ff22cd892aa1e8 (patch) | |
| tree | b697f95eadc8f0ef139030b10ab7bc01b9bf0028 | |
| parent | 65ac519715ea0ecace08b183f2d8730d0450affd (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.
| -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 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) { |
