mmc: card: increase command retries to 10 from 3
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 26 Dec 2011 07:09:20 +0000 (12:09 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 26 Dec 2011 08:54:30 +0000 (00:54 -0800)
commitc4beda3e798ed91e1dadbce4206b407832fcc40b
tree874173293ab7d42bcc438c9535b5d3c9d6c74976
parenta68e0521973c4cb3466343b19da14b2a3e6ff31b
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>
drivers/mmc/card/block.c