Merge pull request #1928 from gschorcht/src/portable/synopsys/dwc2/fix_sof_int_handling

synopsys/dwc2: fix SOF interrupt handling
This commit is contained in:
HiFiPhile 2024-02-01 11:26:27 +01:00 committed by GitHub
commit c151da6455
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1130,8 +1130,8 @@ void dcd_int_handler(uint8_t rhport) {
dwc2->gotgint = otg_int; dwc2->gotgint = otg_int;
} }
if (int_status & GINTSTS_SOF) { if(int_status & GINTSTS_SOF) {
dwc2->gotgint = GINTSTS_SOF; dwc2->gintsts = GINTSTS_SOF;
if (_sof_en) { if (_sof_en) {
uint32_t frame = (dwc2->dsts & (DSTS_FNSOF)) >> 8; uint32_t frame = (dwc2->dsts & (DSTS_FNSOF)) >> 8;