]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: sdhci-of-arasan: Increase CD stable timeout to 2 seconds
authorSai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Fri, 12 Dec 2025 06:35:09 +0000 (12:05 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 17 Dec 2025 13:12:14 +0000 (14:12 +0100)
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: e251709aaddb ("mmc: sdhci-of-arasan: Ensure CD logic stabilization before power-up")
Cc: stable@vger.kernel.org
Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c

index b97d042897add58a73a7dc66fd9f5b3e76d6f4b7..ab7f0ffe7b4f007a58eb0a26868b08b0b02b40f3 100644 (file)
@@ -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
 
 /**