Skip to content

Fix receiving out of order bug#19

Merged
RockyZeroFour merged 1 commit intofeature/gd32f4-improvedfrom
fix/dwc2-race-condition
Apr 2, 2025
Merged

Fix receiving out of order bug#19
RockyZeroFour merged 1 commit intofeature/gd32f4-improvedfrom
fix/dwc2-race-condition

Conversation

@RockyZeroFour
Copy link
Copy Markdown

  • Prevents a dead lock where an OUT token is handled out of order
  • If an OUT token and SETUP packages is received right after each other and handled within the same ISR call the SETUP package incorrectly gets handled before the OUT token
  • Under normal circumstances an OUT token can't immediately follow a SETUP package, so it must be the other way around
  • A SETUP package will always reset the flow

- Prevents a dead lock where an OUT token is handled out of order
- If an OUT token and SETUP packages is received right after each other and handled within the same ISR call the SETUP package incorrectly gets handled before the OUT token
- Under normal circumstances an OUT token can't immediately follow a SETUP package, so it must be the other way around
- A SETUP package will always reset the flow
@RockyZeroFour RockyZeroFour merged commit 7c2565e into feature/gd32f4-improved Apr 2, 2025
0 of 64 checks passed
@RockyZeroFour RockyZeroFour deleted the fix/dwc2-race-condition branch April 2, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants