summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-02-01 11:26:27 +0100
committerGitHub <[email protected]>2024-02-01 11:26:27 +0100
commitc151da64550f9ac50dd7d086e0b056dab15dc6ad (patch)
tree2e9ec39d15071c5ce37a437aac729245da6ef57e /src
parentf505cc2add915c2e68c5d26a2804757c6b904bfe (diff)
parentd692d7783408dc5ac1f3d21b40b06eff6d722910 (diff)
Merge pull request #1928 from gschorcht/src/portable/synopsys/dwc2/fix_sof_int_handling
synopsys/dwc2: fix SOF interrupt handling
Diffstat (limited to 'src')
-rw-r--r--src/portable/synopsys/dwc2/dcd_dwc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c
index ac93632be..3e15d51c6 100644
--- a/src/portable/synopsys/dwc2/dcd_dwc2.c
+++ b/src/portable/synopsys/dwc2/dcd_dwc2.c
@@ -1130,8 +1130,8 @@ void dcd_int_handler(uint8_t rhport) {
dwc2->gotgint = otg_int;
}
- if (int_status & GINTSTS_SOF) {
- dwc2->gotgint = GINTSTS_SOF;
+ if(int_status & GINTSTS_SOF) {
+ dwc2->gintsts = GINTSTS_SOF;
if (_sof_en) {
uint32_t frame = (dwc2->dsts & (DSTS_FNSOF)) >> 8;