]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fsl_esdhc_imx: drop redundant clock settings
authorPeng Fan <peng.fan@nxp.com>
Mon, 4 Nov 2019 09:14:15 +0000 (17:14 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 5 Nov 2019 03:21:25 +0000 (11:21 +0800)
commit1d01c984b9e57e43abc594ca0985128bf2c666eb
tree16f9ce5f4f69ff76e5bd6eba3325dd608a94544a
parent618704753e4dd9fad2435096a67612a878a6d84f
mmc: fsl_esdhc_imx: drop redundant clock settings

During mmc initialization, there are several calls to mmc_set_clock
and mmc_set_ios. When mmc_power_off, the mmc->clock will be set,
but the imx driver will use 400KHz. So the following calls
to mmc_set_ios will set the clock several times which is redundant
in fsl_esdhc_imx driver. So let's simplify to remove redundant
clock settings.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/fsl_esdhc_imx.c