Skip to content

Commit 4c510c1

Browse files
committed
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.
1 parent 65ac519 commit 4c510c1

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
@@ -1288,7 +1288,7 @@ void dcd_int_handler(uint8_t rhport)
12881288

12891289
if(int_status & GINTSTS_SOF)
12901290
{
1291-
dwc2->gotgint = GINTSTS_SOF;
1291+
dwc2->gintsts = GINTSTS_SOF;
12921292

12931293
if (_sof_en)
12941294
{

0 commit comments

Comments
 (0)