Commits
Jean-Jacques Hiblot committed c41866a9db3
mmc: if possible, poll the busy state using DAT0 commit cd0b80ec9c97bdd9fb6642671efad8ef3cb33858 upstream Using the DAT0 line as a rdy/busy line is an alternative to reading the status register of the card. It especially useful in situation where the bus is not in a good shape, like when modes are switched. This is also how the linux driver behaves. Note of warning: As per the specification, while polling on DAT0 the CLK must not turned off: "[...] Without a clock edge the Device (unless previously disconnected by a deselect command (CMD7)) will force the DAT0 line down, forever. [...]" Tested-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>