]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Add quirk to disable HW timeout
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 27 Apr 2018 11:47:15 +0000 (17:17 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 May 2018 07:36:19 +0000 (09:36 +0200)
commit02616a8fb94d05731d506db670eeae1438fb3aa5
tree4c160b4f31c765d170a910481fa0af08e8c13cbc
parent310d48af2eb77071ca203c996aac89e67ffc46fd
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