Skip to content

LPC USB stability fixes #5878

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
Jan 22, 2018
Merged

Conversation

c1728p9
Copy link
Contributor

@c1728p9 c1728p9 commented Jan 18, 2018

Fix USB race condition and add data throttling.

If a SETUP packet arrives shortly after an IN then the packets will be
processed in the wrong order - SETUP first then IN. This causes
the subsequent control transfer to fail. Fix this problem by processing
IN packets before processing SETUP packets.
Only clear the USB read buffer when endpointRead is called. This
allows data to be read with endpointReadResult without also allowing
USB to transfer more data. Instead additional data is transferred explicitly
with a call to endpointRead.
@c1728p9
Copy link
Contributor Author

c1728p9 commented Jan 18, 2018

@mmahadevan108 I wasn't able to get data throttling working for bulk OUT endpoints. Do you know how this could be accomplished, or if this is even possible?

@c1728p9
Copy link
Contributor Author

c1728p9 commented Jan 18, 2018

/morph build

@c1728p9
Copy link
Contributor Author

c1728p9 commented Jan 18, 2018

CC @ashok-rao

@mbed-ci
Copy link

mbed-ci commented Jan 18, 2018

Build : SUCCESS

Build number : 892
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5878/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 18, 2018

@mbed-ci
Copy link

mbed-ci commented Jan 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants