]> git.dujemihanovic.xyz Git - u-boot.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)
commit863d10044aae5ee40a9cf9a76aed62822cf45c30
tree2f187064b64757fe5f0bbb0bd6b03271818190b2
parentc2c22b9df3f7e01a60a01a4b4a5d3dda95bac0bc
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