Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dcd_dwc2): Reset opened EP counters on bus_reset event #23

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

roma-jam
Copy link
Collaborator

@roma-jam roma-jam commented Apr 15, 2024

Describe the PR

  1. Added reset opened IN/OUT EPs counters on dcd_dwc2 bus_reset event.
  2. Changed the function names to get a bit cleaner idea of logic.

Additional context
Without resetting the values, during re-connection to the Virtual Machine the counters will be overflowed during the next interface creation on device enumeration.

During the reconnection to the Virtual Machine, the USB bus reset requested several times.
During this event we need to reset the counters for IN/OUT opened EPs, which was added in #20

Close espressif/esp-usb#28

@roma-jam roma-jam self-assigned this Apr 15, 2024
@roma-jam roma-jam force-pushed the fix/dcd_dwc2_reset_open_ep_counters branch from 594b7a4 to c37fedb Compare April 15, 2024 09:11
@roma-jam roma-jam marked this pull request as ready for review April 15, 2024 09:32
Copy link
Collaborator

@peter-marcisovsky peter-marcisovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for a quick fix.

@roma-jam
Copy link
Collaborator Author

@peter-marcisovsky, Thanks for the prompt review.
Sorry, for missing that during PR 😞

Copy link
Collaborator

@tore-espressif tore-espressif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roma-jam LGTM.

Have you managed to reproduce the error and confirm that it is fixed now?

@roma-jam
Copy link
Collaborator Author

@tore-espressif,

Sure, I reproduced and verified that it was fixed.

@roma-jam roma-jam force-pushed the fix/dcd_dwc2_reset_open_ep_counters branch from 6ab6e79 to bdcd31a Compare April 18, 2024 08:49
@roma-jam roma-jam merged commit 763f392 into release/v0.15 Apr 18, 2024
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.

3 participants