mmc: fsl_esdhc: Fix 'Internal clock never stabilised.' error
authorPali Rohár <pali@kernel.org>
Fri, 29 Apr 2022 18:27:34 +0000 (20:27 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 27 Jul 2022 06:19:08 +0000 (15:19 +0900)
commit6dcf1c28dd4344e73fb3108c037b5b9093852328
treea03dd1926c21b65d0818e4e491f24325a48afcef
parent86feeab3dc71977afb70f595e42060ce324086d0
mmc: fsl_esdhc: Fix 'Internal clock never stabilised.' error

Only newer eSDHC controllers set PRSSTAT_SDSTB flag. So do not wait until
flag PRSSTAT_SDSTB is set on old pre-2.2 controllers. Instead sleep for
fixed amount of time like it was before commit 6f883e501b65 ("mmc:
fsl_esdhc: Add emmc hs200 support").

This change fixes error 'Internal clock never stabilised.' which is printed
on P2020 board at every access to SD card.

Fixes: 6f883e501b65 ("mmc: fsl_esdhc: Add emmc hs200 support")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc.c