diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-05-02 21:02:39 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-05-02 21:02:39 +0200 |
commit | 58741e8b3603e56c3699550e8bc89cb136329343 (patch) | |
tree | 84896f991d3d7cb08d7ae0588f0bba9e2937b681 /drivers/mmc/imxmmc.c | |
parent | [MMC] extend data timeout for writes (diff) | |
download | linux-58741e8b3603e56c3699550e8bc89cb136329343.tar.xz linux-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/imxmmc.c')
-rw-r--r-- | drivers/mmc/imxmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/imxmmc.c b/drivers/mmc/imxmmc.c index 07f36c454bd6..bc271925099a 100644 --- a/drivers/mmc/imxmmc.c +++ b/drivers/mmc/imxmmc.c @@ -529,7 +529,7 @@ static int imxmci_data_done(struct imxmci_host *host, unsigned int stat) data_error = imxmci_finish_data(host, stat); - if (host->req->stop && (data_error == MMC_ERR_NONE)) { + if (host->req->stop) { imxmci_stop_clock(host); imxmci_start_cmd(host, host->req->stop, 0); } else { |