mmc: msm_sdcc: add stop transmission support

Large packed write request may take pretty long time to complete
causing the next read operation (if any) to wait for current write
to complete.

Instead we should interrupt the current write operation and execute
waiting read operation and once the read is completed, go back to
interrupted write operation and resume it.

To support this functionality, we have added support for following 2
new host operations in our driver:
1. int (*stop_request)(struct mmc_host *host)
        => Call this op to stop the current transfer synchronously.
2. unsigned int (*get_xfer_remain)(struct mmc_host *host);
        => Call this function to get the remaining number of bytes
           for current transfer

Change-Id: Ic8876f33f07f08792765154a7dacb6a14508966f
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
1 file changed