summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2011-12-26 12:39:20 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-26 00:54:30 -0800
commitc4beda3e798ed91e1dadbce4206b407832fcc40b (patch)
tree874173293ab7d42bcc438c9535b5d3c9d6c74976 /drivers/mmc
parenta68e0521973c4cb3466343b19da14b2a3e6ff31b (diff)
mmc: card: increase command retries to 10 from 3
When commands timeout, previously we had code to retry the same command 3 times. But under some situations 3 retries do not suffice. Increasing the retries to 10 does the trick. Also if the card does not respond after 10 retries then the card is dead for sure. But if the same card responds in between 3 to 10 retries then it is always beneficial to have retries as 10. Bug 914934 Change-Id: I6b1e95c10ca5a62dde84ce8cacbe53ad2197ab33 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/72092 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/card/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 5367900dd80e..6db913d6342f 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -59,7 +59,7 @@ MODULE_ALIAS("mmc:block");
#define INAND_CMD38_ARG_SECTRIM1 0x81
#define INAND_CMD38_ARG_SECTRIM2 0x88
-#define MMC_CMD_RETRIES 3
+#define MMC_CMD_RETRIES 10
static DEFINE_MUTEX(block_mutex);