drivers/mtd_sdcard: support unaligned reads & writes#17619
Merged
fjmolinas merged 3 commits intoRIOT-OS:masterfrom Feb 17, 2022
Merged
drivers/mtd_sdcard: support unaligned reads & writes#17619fjmolinas merged 3 commits intoRIOT-OS:masterfrom
fjmolinas merged 3 commits intoRIOT-OS:masterfrom
Conversation
aa78758 to
91ca757
Compare
Contributor
|
How should this be tested? |
Contributor
Author
|
Yea I started this in a bit of a WIP state. But the idea is that the automatic test in |
Contributor
|
Without investigating much, this is my initial result: |
Contributor
Author
|
What are MTD0 and MTD1 in your test? |
Contributor
I don't know... I copied your patch for another sdcard setup, I'll re-try tomorrow |
Contributor
|
Hmm I guess in your hardware you have 2 more MTD devices? |
Contributor
I re-tested with NUMOF:
|
fjmolinas
reviewed
Feb 17, 2022
Contributor
fjmolinas
left a comment
There was a problem hiding this comment.
LGTM, only one question.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This allows to use SD card as a MTD backed even if users want to do unaligned reads and writes (e.g. SPIFFS, FlashDB).
Testing procedure
The
testcommand fromtests/mtd_rawshould now work on SD cards.master
this PR
If the SD card is not configured by the board, this requires adding some manual SD card config, e.g. for
same54-xproon EXT2:Issues/PRs references