]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb17f70083a0c8dfba2b85aa923593b7e414c7091
treea03dd1926c21b65d0818e4e491f24325a48afcef
parent41902bb331404f8becccf5a449720b7e8d895745
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 977f41e2aab2 ("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: 977f41e2aab2 ("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