]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci: add quirk SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST
authorludovic.desroches@atmel.com <ludovic.desroches@atmel.com>
Thu, 17 Sep 2015 08:16:19 +0000 (10:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 8 Oct 2015 17:55:05 +0000 (19:55 +0200)
commitaf951761d01c89eea8f1dcccf8010218e4b55817
tree41f5fa35918daed8aa7353fe7123bd83b224ada1
parent2162d9f41e7c4778b96b8e3b97adcedbadc861f1
mmc: sdhci: add quirk SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST

The Atmel sdhci device needs a new quirk. sdhci_set_clock set the Clock
Control Register to 0 before computing the new value and writing it.
It disables the internal clock which causes a reset mecanism. If we
write the new value before this reset mecanism is done, it will prevent
the stabilisation of the internal clock, so a delay is needed. This
delay is about 2-3 cycles of the base clock. To be safe, a 1 ms delay is
used.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h