Skip to content

blk/mmc: miscellaneous bug fixes - #389

Merged
Ivan-Velickovic merged 6 commits into
mainfrom
imx-mmc-fixes
Mar 31, 2025
Merged

blk/mmc: miscellaneous bug fixes#389
Ivan-Velickovic merged 6 commits into
mainfrom
imx-mmc-fixes

Conversation

@midnightveil

@midnightveil midnightveil commented Mar 31, 2025

Copy link
Copy Markdown
Contributor

To be merged without squashing, see individual commit messages for more details.

Cherry picked from #180 and with an extra bugfix from @dreamliner787-9's work with virtio-blk (to be tested)

Signed-off-by: julia <git.ts@trainwit.ch>
Signed-off-by: julia <git.ts@trainwit.ch>
Signed-off-by: julia <git.ts@trainwit.ch>
* assert that the TC bit is set only if no error bits are set
  as it could still be high if leftover from a previous command
  as we don't reset after an error

* special case the DMA error, as usually this is a virtualiser
  error to send invalid DMA addresses.

* add a note about the source of "CMD/Data-inhibit set" as we
  experience this whenever we have an error as we don't handle
  them properly

Signed-off-by: julia <git.ts@trainwit.ch>
…done'

This fixes random block command errors due to the inhibition flags being
set, even though they often disappear afterwards, so they are random
transient errors that appear.

Signed-off-by: julia <git.ts@trainwit.ch>
All card types support "Default Speed" operation.

Signed-off-by: julia <git.ts@trainwit.ch>
@midnightveil
midnightveil marked this pull request as ready for review March 31, 2025 02:58
@Ivan-Velickovic
Ivan-Velickovic merged commit 7ebfdae into main Mar 31, 2025
@Ivan-Velickovic
Ivan-Velickovic deleted the imx-mmc-fixes branch March 31, 2025 03:54
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.

2 participants