]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/mmc/dw_mmc.c
mmc: dw_mmc: fix data starvation by host timeout under FIFO mode
[karo-tx-uboot.git] / drivers / mmc / dw_mmc.c
index a0a582b4421d632a17fe59159f742c571faa2788..afc674dd143dcd7f737cbbccd6ce5da85772d6df 100644 (file)
@@ -119,6 +119,7 @@ static int dwmci_data_transfer(struct dwmci_host *host, struct mmc_data *data)
                }
 
                if (host->fifo_mode && size) {
+                       len = 0;
                        if (data->flags == MMC_DATA_READ) {
                                if ((dwmci_readl(host, DWMCI_RINTSTS) &
                                     DWMCI_INTMSK_RXDR)) {