Skip to content

Commit

Permalink
ARM: mmci: complete the transaction on error
Browse files Browse the repository at this point in the history
When we encounter an error, make sure we complete the transaction
otherwise we'll leave the request dangling.

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jan 31, 2011
1 parent f5a106d commit ccff9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
if (status & MCI_DATABLOCKEND)
dev_err(mmc_dev(host->mmc), "stray MCI_DATABLOCKEND interrupt\n");

if (status & MCI_DATAEND) {
if (status & MCI_DATAEND || data->error) {
mmci_stop_data(host);

if (!data->error)
Expand Down

0 comments on commit ccff9b5

Please sign in to comment.