]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mmc/dw_mmc.c
mmc: dw_mmc: Stop bounce buffer even in case of failure
[karo-tx-uboot.git] / drivers / mmc / dw_mmc.c
index 53a8aca84b615e9a8e5e185ac4ad28f6fc00a841..3fffa7116647618a1fa3c60b45bb11728941c95c 100644 (file)
@@ -215,6 +215,7 @@ static int dwmci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
                        mask = dwmci_readl(host, DWMCI_RINTSTS);
                        if (mask & (DWMCI_DATA_ERR | DWMCI_DATA_TOUT)) {
                                printf("%s: DATA ERROR!\n", __func__);
+                               bounce_buffer_stop(&bbstate);
                                return -1;
                        }
                } while (!(mask & DWMCI_INTMSK_DTO));