mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
omap_hsmmc: cater for weird CMD6 behaviour
Sometimes the controller unexpectedly produces a TC (transfer complete) interrupt before the CC (command complete) interrupt for command 6 (SWITCH). This is a problem because the CC interrupt can get mixed up with the next request. Add a hack for CMD6. Signed-off-by: Adrian Hunter <[email protected]> Acked-by: Matt Fleming <[email protected]> Cc: Ian Molton <[email protected]> Cc: "Roberto A. Foglietta" <[email protected]> Cc: Jarkko Lavinen <[email protected]> Cc: Denis Karpov <[email protected]> Cc: Pierre Ossman <[email protected]> Cc: Philip Langdale <[email protected]> Cc: "Madhusudhan" <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c653a6d4d1
commit
23050103c2
1 changed files with 7 additions and 0 deletions
|
|
@ -481,6 +481,13 @@ mmc_omap_xfer_done(struct mmc_omap_host *host, struct mmc_data *data)
|
|||
if (!data) {
|
||||
struct mmc_request *mrq = host->mrq;
|
||||
|
||||
/* TC before CC from CMD6 - don't know why, but it happens */
|
||||
if (host->cmd && host->cmd->opcode == 6 &&
|
||||
host->response_busy) {
|
||||
host->response_busy = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
host->mrq = NULL;
|
||||
mmc_request_done(host->mmc, mrq);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue