Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccff9b51 authored by Russell King's avatar Russell King
Browse files

ARM: mmci: complete the transaction on error



When we encounter an error, make sure we complete the transaction
otherwise we'll leave the request dangling.

Acked-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f5a106d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -319,7 +319,7 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
	if (status & MCI_DATABLOCKEND)
	if (status & MCI_DATABLOCKEND)
		dev_err(mmc_dev(host->mmc), "stray MCI_DATABLOCKEND interrupt\n");
		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);
		mmci_stop_data(host);


		if (!data->error)
		if (!data->error)