Skip to content

drivers/mmc: Read crc for data commands#3695

Open
kasjer wants to merge 2 commits into
apache:masterfrom
kasjer:kasjer/mmc-fix-data-command-read-crc
Open

drivers/mmc: Read crc for data commands#3695
kasjer wants to merge 2 commits into
apache:masterfrom
kasjer:kasjer/mmc-fix-data-command-read-crc

Conversation

@kasjer

@kasjer kasjer commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Code was not reading CRC for commands with
data other then CMD17/CMD18.

It could result in strange behavior for some
cards that send CRC on subsequent clocks
that belong to other requests and synchronization
was lost.

Now CRC is read after data block is received.

Code was not reading CRC for commands with
data other then CMD17/CMD18.

It could result in strange behavior for some
cards that send CRC on subsequent clocks
that belong to other requests and synchronization
was lost.

Now CRC is read after data block is received.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
When all bits were set in R1 response formated text
was longer then 30 characters.

Now buffer is extended to aviod stack corruption
during error print.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant