summaryrefslogtreecommitdiff
path: root/drivers/mmc/pxamci.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-05-02 20:02:39 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-05-02 20:02:39 +0100
commit58741e8b3603e56c3699550e8bc89cb136329343 (patch)
tree84896f991d3d7cb08d7ae0588f0bba9e2937b681 /drivers/mmc/pxamci.c
parent37be4e7809e0581db85387e126ae4da68c3d6286 (diff)
downloadlinux-3.10-58741e8b3603e56c3699550e8bc89cb136329343.tar.gz
linux-3.10-58741e8b3603e56c3699550e8bc89cb136329343.tar.bz2
linux-3.10-58741e8b3603e56c3699550e8bc89cb136329343.zip
[MMC] PXA and i.MX: don't avoid sending stop command on error
Always send a stop command at the end of a data transfer. If we avoid sending the stop command, some cards remain in data transfer mode, and refuse to accept further read/write commands. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/pxamci.c')
-rw-r--r--drivers/mmc/pxamci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/pxamci.c b/drivers/mmc/pxamci.c
index eb42cb34942..15a5caa0bde 100644
--- a/drivers/mmc/pxamci.c
+++ b/drivers/mmc/pxamci.c
@@ -291,7 +291,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
pxamci_disable_irq(host, DATA_TRAN_DONE);
host->data = NULL;
- if (host->mrq->stop && data->error == MMC_ERR_NONE) {
+ if (host->mrq->stop) {
pxamci_stop_clock(host);
pxamci_start_cmd(host, host->mrq->stop, 0);
} else {