Skip to content

Commit

Permalink
Merge pull request #2472 from cdesjardins/master
Browse files Browse the repository at this point in the history
Do not enable the Mode mismatch interrupt source, it is not cleared
  • Loading branch information
HiFiPhile authored Mar 24, 2024
2 parents 81e4f65 + 5ca9980 commit 3ec22e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/portable/synopsys/dwc2/dcd_dwc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,7 @@ void dcd_init(uint8_t rhport) {
dwc2->gotgint |= int_mask;

// Required as part of core initialization.
// TODO: How should mode mismatch be handled? It will cause
// the core to stop working/require reset.
dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_MMISM | GINTMSK_RXFLVLM |
dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_RXFLVLM |
GINTMSK_USBSUSPM | GINTMSK_USBRST | GINTMSK_ENUMDNEM | GINTMSK_WUIM;

// Enable global interrupt
Expand Down

0 comments on commit 3ec22e2

Please sign in to comment.