]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: add mmc_poll_for_busy() and change the purpose of mmc_send_status()
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 2 Jul 2019 08:53:52 +0000 (10:53 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 15 Jul 2019 02:16:49 +0000 (10:16 +0800)
commitafbbdd975bd3ac6d038d48fffcfd2fde2b5ad852
tree2f187064b64757fe5f0bbb0bd6b03271818190b2
parent21bc64a4ce8c9edcc46e184b7c2e869458837965
mmc: add mmc_poll_for_busy() and change the purpose of mmc_send_status()

mmc_send_status() is currently used to poll the card until it is ready, not
actually returning the status of the card.
Make it return the status and add another function to poll the card.

Also remove the 'extern' declaration in the mmc-private.h header to comply
with the coding standard.

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