msm_shared: sdhci: Clear transfer complete for busy commands
Commands with busy response set the transfer complete bit after
their execution is complete. Clear the transfer complete bit for
these commands. Also add support for reading data which is less
than max supported block length from the capabilities register.
CRs-Fixed: 492353
Change-Id: I05514a6098538287157f2f34b7c2d218a44949a0
diff --git a/platform/msm_shared/include/sdhci.h b/platform/msm_shared/include/sdhci.h
index ff61868..0c15c06 100644
--- a/platform/msm_shared/include/sdhci.h
+++ b/platform/msm_shared/include/sdhci.h
@@ -63,6 +63,7 @@
*/
struct mmc_data {
void *data_ptr; /* Points to stream of data */
+ uint32_t blk_sz; /* Block size for the data */
uint32_t num_blocks; /* num of blocks, each always of size SDHCI_MMC_BLK_SZ */
};