drivers: mmc: Fix some issues with MMC stack
authorTien Hock, Loh <tien.hock.loh@intel.com>
Thu, 7 Mar 2019 03:34:20 +0000 (11:34 +0800)
committerTien Hock, Loh <tien.hock.loh@intel.com>
Thu, 7 Mar 2019 03:34:20 +0000 (11:34 +0800)
commita468e756377ebe73920eb83f4a4425cabab66ebc
tree76ac6077eda8b433325e3c034b44d0d55812bcc9
parent1cf55aba4902d43c95e5a24acf6d85de96923dc0
drivers: mmc: Fix some issues with MMC stack

Some bugs in MMC stack needs to be fixed:
- scr cannot be local as this will cause cache issue when invalidating
after the read DMA transfer is completed
- ACMD41 needs to send voltage information in initialization, otherwise the
command is a query, thus will not initialize the controller
- when checking device state, retry until the retries counter goes to zero
before failing

Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
drivers/mmc/mmc.c
include/drivers/mmc.h