]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sdhci: set to INT_DATA_END when there are data
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 12 Jul 2016 12:18:46 +0000 (21:18 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 5 Aug 2016 02:21:24 +0000 (11:21 +0900)
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>
drivers/mmc/sdhci.c

index 1de1f8ea016db05e52b1f90f2f6c2ea502965dec..d584b0b5947c89f549081c85e9904e48d03e9232 100644 (file)
@@ -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;