Skip to content

drivers: usb: nordic: Fix max packet size handling #10934

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

Conversation

pawelzadrozniak
Copy link
Collaborator

@pawelzadrozniak pawelzadrozniak commented Oct 30, 2018

This commit fixes the issue with non-default max packet size (<64).
The max packet size value was not passed to low-level driver
in norfic hal (nrfx_usbd) causing 64-byte being send regardless of
configured endpoint size. Size mismatch results in communication
error on Linux hosts.

Signed-off-by: Paweł Zadrożniak [email protected]

@carlescufi
Copy link
Member

CC @rakons

Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

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

@pawelzadrozniak could you please add a more detailed description of the change in the commit message?

@codecov-io
Copy link

codecov-io commented Oct 30, 2018

Codecov Report

Merging #10934 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10934   +/-   ##
=======================================
  Coverage   53.29%   53.29%           
=======================================
  Files         215      215           
  Lines       25904    25904           
  Branches     5710     5710           
=======================================
  Hits        13805    13805           
  Misses       9778     9778           
  Partials     2321     2321

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f7e25a...4519350. Read the comment docs.

This commit fixes the issue with non-default max packet size (<64).
The max packet size value was not passed to low-level driver
in norfic hal (nrfx_usbd) causing 64-byte being send regardless of
configured endpoint size. Size mismatch results in communication
error on Linux hosts.

Signed-off-by: Paweł Zadrożniak <[email protected]>
@carlescufi
Copy link
Member

recheck

1 similar comment
@carlescufi
Copy link
Member

recheck

@carlescufi carlescufi merged commit 7791f58 into zephyrproject-rtos:master Oct 30, 2018
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