Skip to content

Commit c151da6

Browse files
authored
Merge pull request #1928 from gschorcht/src/portable/synopsys/dwc2/fix_sof_int_handling
synopsys/dwc2: fix SOF interrupt handling
2 parents f505cc2 + d692d77 commit c151da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/portable/synopsys/dwc2/dcd_dwc2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,8 +1130,8 @@ void dcd_int_handler(uint8_t rhport) {
11301130
dwc2->gotgint = otg_int;
11311131
}
11321132

1133-
if (int_status & GINTSTS_SOF) {
1134-
dwc2->gotgint = GINTSTS_SOF;
1133+
if(int_status & GINTSTS_SOF) {
1134+
dwc2->gintsts = GINTSTS_SOF;
11351135

11361136
if (_sof_en) {
11371137
uint32_t frame = (dwc2->dsts & (DSTS_FNSOF)) >> 8;

0 commit comments

Comments
 (0)