OSDN Git Service

mmc: sdhci-of-arasan: Add quirk for unstable clocks
authorHelmut Grohne <h.grohne@intenta.de>
Wed, 20 Jun 2018 11:33:00 +0000 (13:33 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Jul 2018 09:21:45 +0000 (11:21 +0200)
commit3f2c7d5d158d7df430b5763674be9e0b834dfd6f
treecf64451cd5c72025e5d388d2c63af2e0537d8479
parent26c312281336b55eba01ea1e7b85740d383076c6
mmc: sdhci-of-arasan: Add quirk for unstable clocks

Some controllers immediately report SDHCI_CLOCK_INT_STABLE after
enabling the clock even when the clock is not stable. When used in
conjunction with older/slower cards, this can result in:

    mmc0: error -84 whilst initialising SD card

When the stable reporting is known to be broken, we simply wait for the
maximum stabilization period.

Signed-off-by: Helmut Grohne <h.grohne@intenta.de>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c