mmc: sdhci: Introduce max_timeout_count variable in sdhci_host
authorSarthak Garg <sartgarg@codeaurora.org>
Fri, 6 Aug 2021 06:54:59 +0000 (12:24 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 08:15:33 +0000 (10:15 +0200)
commite30314f255117f37412d41e918f941a9ae0835f3
treedc1af0af34c13adefdc67cc3269ac47790c1714e
parent3ac5e45291f3f0d699a721357380d4593bc2dcb3
mmc: sdhci: Introduce max_timeout_count variable in sdhci_host

Introduce max_timeout_count variable in the sdhci_host structure
and use in timeout calculation. By default its set to 0xE
(max timeout register value as per SDHC spec). But at the same time
vendors drivers can update it if they support different max timeout
register value than 0xE.

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