]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-esdhc-imx: clear tuning bits during driver probe
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 12 Jul 2016 07:46:24 +0000 (15:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:59 +0000 (10:34 +0200)
commitb5e40f8c1f6269c04289607d5cd964200ac9923f
tree9a2a69be7dd60cf3878b152b842020f4fdd067e4
parent011c4c58316826f3ce3cb7afd9e1bb8191633cab
mmc: sdhci-esdhc-imx: clear tuning bits during driver probe

The tuning bits like FBCLK_SEL, SMP_CLK_SEL and DLY_CELL which affects
timing may have already been set by ROM if booting from SD3.0 mode like
SDR104. Let's clear it first during driver probe before doing the new
card enumeration to avoid working on the wrong timing.

Note that tuning bits are dynamical settings which may need to be kept
during MMC_PM_KEEP_POWER suspend, so we did not put them into hwinit
function.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c