Commit 5e1c23cd392f17be9d135e504d48925a1cd92aa2
Committed by
Pantelis Antoniou
1 parent
5a20397b00
Exists in
v2017.01-smarct4x
and in
34 other branches
mmc: sdhci: add timeout setting for response busy command
Timeout interrupt also work for response busy command(R1b) like cmd38/cmd6. So need to set it accordingly. Current code only set timeout for data command. Signed-off-by: Kevin Liu <kliu5@marvell.com> Signed-off-by: Rob Herring <robh@kernel.org> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/mmc/sdhci.c
... | ... | @@ -213,6 +213,8 @@ |
213 | 213 | SDHCI_BLOCK_SIZE); |
214 | 214 | sdhci_writew(host, data->blocks, SDHCI_BLOCK_COUNT); |
215 | 215 | sdhci_writew(host, mode, SDHCI_TRANSFER_MODE); |
216 | + } else if (cmd->resp_type & MMC_RSP_BUSY) { | |
217 | + sdhci_writeb(host, 0xe, SDHCI_TIMEOUT_CONTROL); | |
216 | 218 | } |
217 | 219 | |
218 | 220 | sdhci_writel(host, cmd->cmdarg, SDHCI_ARGUMENT); |