mmc: sdhci: Add quirk to disable HW timeout
commita999fd9392310ff44b684f2011a60de7c7e73891
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 27 Apr 2018 11:47:15 +0000 (27 17:17 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 May 2018 07:36:19 +0000 (3 09:36 +0200)
tree4c160b4f31c765d170a910481fa0af08e8c13cbc
parentc16bc9a7678a27ece028dcbfea8df2049a65dbec
mmc: sdhci: Add quirk to disable HW timeout

Add quirk to disable HW timeout if the requested timeout is more than the
maximum obtainable timeout.

Also, if the quirk is set and ->get_max_timeout_count() is not implemented,
max_busy_timeout is set to zero.

Based-on-patch-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h