]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fsl_esdhc_imx: Fix clock disable issue
authorYe Li <ye.li@nxp.com>
Tue, 17 Aug 2021 09:09:20 +0000 (17:09 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Oct 2021 14:53:50 +0000 (16:53 +0200)
commit9b7c3495500c31b4acf416c9f866947feab3e230
tree6038a6155b33a0c80ed080f71ee56ef17860a1ec
parentdeb80ec023ecace8afa3dc13c1bef757a247b206
mmc: fsl_esdhc_imx: Fix clock disable issue

The SD clock disable is wrapped by MMC_SUPPORTS_TUNING. So it
only works when UHS is enabled. However, in SD initialization the
power cycle does not depends on UHS. But the power cycle needs
disable the SD clock before power down.
So this causes a problem when UHS is not enabled. Some cards can't
become ready (ACMD14 timeout) due to the clock is enabled during
power cycle.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc_imx.c