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 unaligned disk reads properly #2662

Merged
merged 2 commits into from
Mar 3, 2020
Merged

Conversation

jepler
Copy link
Member

@jepler jepler commented Feb 28, 2020

This patchset improves spi_flash_read_data so that it handles unaligned (and non-multiple-of-4) disk reads. It also adds a note that writes MAY need this handling too; however, I think without checking that oofatfs will never actually generate such writes. It also removes the workaround that was the initial band-aid fox for #2332.

This workaround is no longer needed, so it can be removed.

Closes: adafruit#2332
@jepler jepler added this to the 5.x.x - Bug Fixes milestone Feb 28, 2020
@jepler
Copy link
Member Author

jepler commented Feb 28, 2020

Alternately, I could do this in the nrfx submodule, which would also benefit arduino. Let me know, while I'm fresh from implementing this would be a good time to take it upstream instead.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks!

@tannewt tannewt merged commit 17458ad into adafruit:master Mar 3, 2020
@jepler jepler deleted the issue2332 branch November 3, 2021 21:10
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.

None yet

2 participants