MLK-25486 mmc: fsl_esdhc_imx: Fix clock disable issue
authorYe Li <ye.li@nxp.com>
Wed, 12 May 2021 10:31:23 +0000 (03:31 -0700)
committerYe Li <ye.li@nxp.com>
Wed, 12 May 2021 10:54:15 +0000 (03:54 -0700)
commitbc2102fb6a91417445e2480d1e0efb64572fac1f
treef306b8cc78d1689409f9fa163d5ab0e3bbb6a19f
parentf07ffe1db06b96af4d8701eb6e11bdf875667bf0
MLK-25486 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>
drivers/mmc/fsl_esdhc_imx.c