aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkatraman S <svenkatr@ti.com>2012-08-07 09:54:45 -0400
committerChris Ball <cjb@laptop.org>2012-09-04 13:58:20 -0400
commit211d4fe580735bab850d31f9e4c0a62b47a38bb2 (patch)
treea3eb4b6d2c833e980c4137463b21c1ae8fb33dde
parent7a8a43c46a4c91475ff93eb00897cbbc5ec98874 (diff)
mmc: core: Add TRANsfer state to non-HPI state
HPI can be issued only in programming state to bring the card to transfer state. If the card is already in transfer state, doing a HPI is redundant. Fix this by adding transfer state to the list of exceptions to doing HPI and return without error. Signed-off-by: Venkatraman S <svenkatr@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/core/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 8ac5246e2ab2..835c9f001a10 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -424,8 +424,9 @@ int mmc_interrupt_hpi(struct mmc_card *card)
424 case R1_STATE_IDLE: 424 case R1_STATE_IDLE:
425 case R1_STATE_READY: 425 case R1_STATE_READY:
426 case R1_STATE_STBY: 426 case R1_STATE_STBY:
427 case R1_STATE_TRAN:
427 /* 428 /*
428 * In idle states, HPI is not needed and the caller 429 * In idle and transfer states, HPI is not needed and the caller
429 * can issue the next intended command immediately 430 * can issue the next intended command immediately
430 */ 431 */
431 goto out; 432 goto out;