mmc: sdhci-msm: Use maximum possible data timeout value
authorSahitya Tummala <stummala@codeaurora.org>
Fri, 6 Aug 2021 06:55:00 +0000 (12:25 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 08:15:34 +0000 (10:15 +0200)
commited78a03d4128ac90f73332d7ac992f952916573c
treefc8eaee1f58d9ae54c2ebc55af2bf59b6030b096
parente30314f255117f37412d41e918f941a9ae0835f3
mmc: sdhci-msm: Use maximum possible data timeout value

The Qcom SD controller defines the usage of 0xF in data
timeout counter register (0x2E) which is actually a reserved
bit as per specification. This would result in maximum of 21.26 secs
timeout value.

Some SDcard taking more time than 2.67secs (timeout value corresponding
to 0xE) and with that observed data timeout errors.
So increasing the timeout value to max possible timeout.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1628232901-30897-3-git-send-email-sartgarg@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c