]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-of-at91: Implement specific ->set_clock() function
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 7 Apr 2016 09:13:09 +0000 (11:13 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:26 +0000 (10:33 +0200)
commit4e289a7d2f55253c1f86bfab5d9187ea97daee44
treef4c3abf83396c43ea0b496d0af6058a64ea5a1fe
parentfb9ee04779cf34a10ef7afaabf4e8055688777c4
mmc: sdhci-of-at91: Implement specific ->set_clock() function

Disabling the internal clock while configuring the SD card clock can
lead to internal clock stabilization issue and/or unexpected switch to
the base clock when using presets.
A quirk SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST was introduced to fix
these bugs. The cause was assumed to be a too long internal
re-synchronisation but it seems in some cases the delay (even if longer)
doesn't fix this bug. The safest workaround is to not disable/enable the
internal clock during the SD card clock configuration.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c