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 unwanted flush in the SPI slave driver #8769

Merged

Conversation

gonzaloaterido
Copy link
Contributor

Summary

This PR intends to fix a bug detected in the upper half SPI slave driver. The bug appears when there are X bytes in the driver buffer and a read is performed with a smaller size buffer. In that call, the data that fits in the buffer is returned to the user, and the rest that remains to be read is discarded.
With the proposed fix, successive readings will return the rest of the bytes pending to be read.

Impact

No data is lost when reading from the slave SPI bus.

Testing

@xiaoxiang781216 xiaoxiang781216 merged commit 6cb649e into apache:master Mar 8, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.1.0 Apr 3, 2023
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 12.1.0 Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants