Commit 58741e8b authored by Russell King's avatar Russell King Committed by Russell King

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 37be4e78
...@@ -529,7 +529,7 @@ static int imxmci_data_done(struct imxmci_host *host, unsigned int stat) ...@@ -529,7 +529,7 @@ static int imxmci_data_done(struct imxmci_host *host, unsigned int stat)
data_error = imxmci_finish_data(host, 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_stop_clock(host);
imxmci_start_cmd(host, host->req->stop, 0); imxmci_start_cmd(host, host->req->stop, 0);
} else { } else {
......
...@@ -291,7 +291,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat) ...@@ -291,7 +291,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
pxamci_disable_irq(host, DATA_TRAN_DONE); pxamci_disable_irq(host, DATA_TRAN_DONE);
host->data = NULL; host->data = NULL;
if (host->mrq->stop && data->error == MMC_ERR_NONE) { if (host->mrq->stop) {
pxamci_stop_clock(host); pxamci_stop_clock(host);
pxamci_start_cmd(host, host->mrq->stop, 0); pxamci_start_cmd(host, host->mrq->stop, 0);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment