Skip to content

SD command queue compatibility expansion#7265

Draft
P33M wants to merge 4 commits intoraspberrypi:rpi-6.12.yfrom
P33M:sd_cqe_compat-6.12
Draft

SD command queue compatibility expansion#7265
P33M wants to merge 4 commits intoraspberrypi:rpi-6.12.yfrom
P33M:sd_cqe_compat-6.12

Conversation

@P33M
Copy link
Contributor

@P33M P33M commented Mar 5, 2026

Prerequisite changes to allow opt-in testing using the dtparam with these mildly broken cards.

P33M added 4 commits March 5, 2026 14:26
Several types of cards have a common bug where the vendor did not
populate the General Information block, but extension registers are
present at assumed function offsets, and the features are correctly
implemented.

Probe the offsets to see if valid data is returned.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Several card OEMs, mainly using Silicon Motion SM270x flash controllers,
have a deficient CMD49 handler that throws away length/offset and
applies the whole block to the addressed extension register page.

Add a quirk to do a read-modify-write cycle for any extension register
write.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
These cards have the same broken CMD49 behaviour across 465T/460T/240I
product lines. Add the Manufacturer ID and match on CID fields that
remain consistent across these types.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
The Biwin MS160 line of cards have a broken CMD49 handler and require
this workaround. The CID match is somewhat broad, but the card name
appears to be unique to these cards.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
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.

1 participant