Skip to content

Cache configuration descriptor #8254

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

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Aug 2, 2023

We use it to open endpoints as they are used. Fetching the descriptor as needed can cause issues with devices that we're expecting a control packet while another transaction was ongoing. Specifically, a usb thumb drive didn't expect a control transaction while doing a SCSI transaction.

This PR also aborts transactions on timeout or ctrl-c interrupt. It doesn't always recover though...

We use it to open endpoints as they are used. Fetching the descriptor
as needed can cause issues with devices that we're expecting a control
packet while another transaction was ongoing. Specifically, a usb
thumb drive didn't expect a control transaction while doing a SCSI
transaction.

This PR also aborts transactions on timeout or ctrl-c interrupt. It
doesn't always recover though...
@jepler
Copy link

jepler commented Aug 3, 2023

The failure here is due to a change of mine; the fix is now part of #8252, so this PR will need to be updated with the latest changes once that one's been merged.

@jepler
Copy link

jepler commented Aug 3, 2023

I tried to update this PR by merging main into it, but github denied my attempt to push the result to tannewt's fork even though it says "maintainers are allowed to edit this pull request". 🤷

@dhalbert
Copy link
Collaborator

dhalbert commented Aug 3, 2023

Scott had to give me extra permissions to do that. I think it's because it's forked from micropython.

@tannewt
Copy link
Member Author

tannewt commented Aug 3, 2023

@jepler I sent you an invite to collaborate on my fork. Thanks for trying to update it!

Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

pending the outcome of building

@jepler jepler merged commit 394ed2a into adafruit:main Aug 4, 2023
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