[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>
This commit is contained in:

committed by
Russell King

parent
37be4e7809
commit
58741e8b36
@@ -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 {
|
||||
|
Reference in New Issue
Block a user