]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: msm_sdcc: Add prog done interrupt support
authorSahitya Tummala <stummala@codeaurora.org>
Wed, 8 Dec 2010 09:33:04 +0000 (15:03 +0530)
committerDavid Brown <davidb@codeaurora.org>
Mon, 20 Dec 2010 20:28:30 +0000 (12:28 -0800)
commitd5137bdd91b8267ada3973806443013f4bf079f6
tree2a05dec2065554803a76b4844278cdbad5aeab68
parent62612cf9d97068dc75b48a7a3044ee907a3283ec
mmc: msm_sdcc: Add prog done interrupt support

Enable prog done interrupt for stop command(CMD12) that is sent
after a multi-block write(CMD25). The PROG_DONE bit is set when
the card has finished its programming and is ready for next data.

After every write request the card will be polled for ready status
using CMD13. For a multi-block write(CMD25) before sending CMD13,
stop command (CMD12) will be sent.  If we enable prog done interrupt
for CMD12, then CMD13 polling can be avoided. The prog done interrupt
means that the card is done with its programming and is ready for
next request.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
drivers/mmc/host/msm_sdcc.c
drivers/mmc/host/msm_sdcc.h