Skip to content

Commit

Permalink
mmc: core: Add TRANsfer state to non-HPI state
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Venkatraman S authored and Chris Ball committed Sep 4, 2012
1 parent 7a8a43c commit 211d4fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,9 @@ int mmc_interrupt_hpi(struct mmc_card *card)
case R1_STATE_IDLE:
case R1_STATE_READY:
case R1_STATE_STBY:
case R1_STATE_TRAN:
/*
* In idle states, HPI is not needed and the caller
* In idle and transfer states, HPI is not needed and the caller
* can issue the next intended command immediately
*/
goto out;
Expand Down

0 comments on commit 211d4fe

Please sign in to comment.