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.
This commit is contained in:
Gunar Schorcht 2023-02-27 09:54:45 +01:00
parent 65ac519715
commit 4c510c12b1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{