From: Jaehoon Chung Date: Tue, 12 Jul 2016 12:18:46 +0000 (+0900) Subject: mmc: sdhci: set to INT_DATA_END when there are data X-Git-Tag: v2016.09-rc2~98^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17ea3c862865c0d704646f67dbf8412f9ff54f59;p=u-boot mmc: sdhci: set to INT_DATA_END when there are data There is no data, it doesn't needs to wait for completing data transfer. (It seems that it can be removed.) Almost all timeout error is occured from stop command without data. After applied this patch, I hope that we don't need to increase timeout value anymore. Signed-off-by: Jaehoon Chung Acked-by: Lukasz Majewski Tested-by: Lukasz Majewski Acked-by: Minkyu Kang --- diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 1de1f8ea01..d584b0b594 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -184,7 +184,8 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, flags = SDHCI_CMD_RESP_LONG; else if (cmd->resp_type & MMC_RSP_BUSY) { flags = SDHCI_CMD_RESP_SHORT_BUSY; - mask |= SDHCI_INT_DATA_END; + if (data) + mask |= SDHCI_INT_DATA_END; } else flags = SDHCI_CMD_RESP_SHORT;