]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: if possible, poll the busy state using DAT0
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 2 Jul 2019 08:53:53 +0000 (10:53 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 15 Jul 2019 02:16:49 +0000 (10:16 +0800)
commit6d0512c2da4a3c6e604e53bdaac02545c734694d
treebc7e8387fdbcb8ecc01046ef8fdcf434e73b449a
parentafbbdd975bd3ac6d038d48fffcfd2fde2b5ad852
mmc: if possible, poll the busy state using DAT0

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. [...]"

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/mmc/mmc-uclass.c
drivers/mmc/mmc.c
include/mmc.h