Skip to content

Commit

Permalink
Fix missing start of USB reset
Browse files Browse the repository at this point in the history
- The start and end of a USB reset is now handled (start mainly to reset the device state & end for getting the current speed)
- Prevents a problem that a USB reset isn't handled when this state is hold for longer
  • Loading branch information
RockyZeroFour committed Mar 18, 2024
1 parent 380ea79 commit 89404a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/portable/synopsys/dwc2/dcd_dwc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,8 @@ void dcd_int_handler(uint8_t rhport)
// USBRST is start of reset.
dwc2->gintsts = GINTSTS_USBRST;
bus_reset(rhport);

dcd_event_bus_reset(rhport, TUSB_SPEED_INVALID, true);
}

if(int_status & GINTSTS_ENUMDNE)
Expand Down

0 comments on commit 89404a7

Please sign in to comment.