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

Hubs no longer work #149

Open
jfedor2 opened this issue Nov 6, 2024 · 2 comments
Open

Hubs no longer work #149

jfedor2 opened this issue Nov 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jfedor2
Copy link

jfedor2 commented Nov 6, 2024

I noticed that USB hubs stopped working some time recently (when plugged into a Pico acting as a host).

I have bisected the issue down to these two commits: d735828, 36d5be4.

@jfedor2 jfedor2 added the bug Something isn't working label Nov 6, 2024
@rppicomidi
Copy link
Contributor

@jfedor2 At least with commit d17f8ef, a single hub works fine most of the time. With some drivers, usb_midi_host for example, unplug detection can fail almost all of the time. The polling of hub status immediately after a failed IN or OUT transfer on the unplugged device also fails, and the TinyUSB hub driver never tries again. See issue hathach/tinyusb#2971. As this issue does not happen using the native RP2040 hardware, I would say the issue is most likely in this driver.

@rppicomidi
Copy link
Contributor

If I roll back the library version to 0.5.3, hathach/tinyusb#2971 does not happen anymore. I agree with @jfedor2. Something went wrong after release 0.5.3. I tested main (442af43), release 0.6.1, and 0.6.0 and see the same issue. The last commit that correctly handled a disconnect from a hub while there was a pending transfer was 0f747aa. I know this happens all of the time with a USB MIDI host, and I suspect it happens with USB CDC ACM host, too. @sekigon-gonnoc, any advice on where to look? The change from release 0.5.3 to 0.6.0 was pretty major.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants