Commit a9c4c908 authored by Sai Krishna Potthuri's avatar Sai Krishna Potthuri Committed by Ulf Hansson
Browse files

mmc: sdhci-of-arasan: Increase CD stable timeout to 2 seconds



On Xilinx/AMD platforms, the CD stable bit take slightly longer than
one second(about an additional 100ms) to assert after a host
controller reset. Although no functional failure observed with the
existing one second delay but to ensure reliable initialization, increase
the CD stable timeout to 2 seconds.

Fixes: e251709a ("mmc: sdhci-of-arasan: Ensure CD logic stabilization before power-up")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent ed724ea1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@
#define HIWORD_UPDATE(val, mask, shift) \
		((val) << (shift) | (mask) << ((shift) + 16))

#define CD_STABLE_TIMEOUT_US		1000000
#define CD_STABLE_TIMEOUT_US		2000000
#define CD_STABLE_MAX_SLEEP_US		10

/**