Skip to content
Commit a0276f3e authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Jaehoon Chung
Browse files

mmc: Fix bug in sd_set_card_speed()



After settings the speed of the sd with the switch command, a check is
done to make sure that the new speed has been set. The current check has a
masking error: speed are encoded on 4 bits only.
Fix it by masking the upper bits.

This fixes a problem seen with QEmu emulating a vexpress-a15.

Reported-by: default avatarJonathan Gray <jsg@jsg.id.au>
Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: default avatarJonathan Gray <jsg@jsg.id.au>
parent 127a6011
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment