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 usbh issue when device genreate multiple attach/detach/attach when plugging in #2107

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

hathach
Copy link
Owner

@hathach hathach commented Jun 13, 2023

Some device can generate multiple event attach/detach/attach (bounching) when plugging into usb host. These are literally generated by physical contact which could cause issue with usbh.

Symptom would be seeing USBH Defer Attach until current enumeration complete all over.

@hathach hathach merged commit 365c416 into master Jun 13, 2023
@hathach hathach deleted the fix-usbh-enum-issue branch June 13, 2023 10:32
@abakosh
Copy link

abakosh commented Jun 15, 2023

@hathach Thank you for fixing this. I have a question also regarding getting stuck in the enum process.
It happens to get stuck for me in the same part also when I try to attach old MSC devices, I am not able to figure out why yet. Did you notice this behavior or was it reported before?

@hathach
Copy link
Owner Author

hathach commented Jun 15, 2023

I encounter this issue when working on imx host, though each port will be different. This pr only fixes the issue in usbh, if you are still seeing the issue, it can come from the hcd layer. Feel free to open an discussion or bug issue to provide more detail as well as further analysis.

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