mmc: msm_sdcc: allow auto prog done detection
Multiblock write command may not always necessary prefixed with
CMD23 (SET_BLOCK_COUNT) or followed by CMD12 (STOP_TRANSMISSION).
So this patch will enable the auto_prog_done for such multi block
write transfers as well.
CRs-fixed: 365355
Change-Id: I45807840443a09e2aa9bbf8e5dd07a47a77e388b
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
diff --git a/drivers/mmc/host/msm_sdcc.h b/drivers/mmc/host/msm_sdcc.h
index 14677c6..0c53102 100644
--- a/drivers/mmc/host/msm_sdcc.h
+++ b/drivers/mmc/host/msm_sdcc.h
@@ -293,8 +293,8 @@
unsigned int xfer_remain; /* Bytes remaining to send */
unsigned int data_xfered; /* Bytes acked by BLKEND irq */
int got_dataend;
- int wait_for_auto_prog_done;
- int got_auto_prog_done;
+ bool wait_for_auto_prog_done;
+ bool got_auto_prog_done;
bool use_wr_data_pend;
int user_pages;
u32 req_tout_ms;