Skip to content
Commit a7778f8f authored by Tom Rini's avatar Tom Rini Committed by Andy Fleming
Browse files

omap_hsmmc: Wait for CMDI to be clear



Before we can send a command we need both the DATI (command inhibit on
mmc_dat line) bit and CMDI (command inhibit on mmc_cmd line) are clear.
The previous behavior of only checking on DATI was insufficient on some
cards and incorrect behavior in any case.  This makes the code check
for both bits being clear and makes the error print more clear as
to what happened.  DATI_CMDDIS is removed as it was unused elsewhere
in the code and stood for 'DATI is set, cmds are disabled still'.

Fix originally spotted by Peter Bigot.

Tested-by: default avatarPeter A. Bigot <bigotp@acm.org>
Tested-by: default avatarRobert Nelson <robertcnelson@gmail.com>
Signed-off-by: default avatarTom Rini <trini@ti.com>
Tested-by: default avatarAndreas Müller <schnitzeltony@googlemail.com>
parent 9a3aae22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment