diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-07-12 21:18:46 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-05 11:21:24 +0900 |
commit | 17ea3c862865c0d704646f67dbf8412f9ff54f59 (patch) | |
tree | 1fc4fb6f43a44b254e992c1459daf13a0320aede /drivers/mmc/sdhci.c | |
parent | bae4a1fdf59cddf02acd0070d1da7303fe5ffd0e (diff) | |
download | u-boot-17ea3c862865c0d704646f67dbf8412f9ff54f59.zip u-boot-17ea3c862865c0d704646f67dbf8412f9ff54f59.tar.gz u-boot-17ea3c862865c0d704646f67dbf8412f9ff54f59.tar.bz2 |
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 <jh80.chung@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/mmc/sdhci.c')
-rw-r--r-- | drivers/mmc/sdhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 1de1f8e..d584b0b 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; |