projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: dw_mmc: fix data starvation by host timeout under FIFO mode
[oweals/u-boot.git]
/
drivers
/
mmc
/
dw_mmc.c
diff --git
a/drivers/mmc/dw_mmc.c
b/drivers/mmc/dw_mmc.c
index a0a582b4421d632a17fe59159f742c571faa2788..afc674dd143dcd7f737cbbccd6ce5da85772d6df 100644
(file)
--- a/
drivers/mmc/dw_mmc.c
+++ b/
drivers/mmc/dw_mmc.c
@@
-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)) {