mmc: sdhci-of-arasan: fix set_clock when a phy is supported
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 4 May 2016 01:43:24 +0000 (09:43 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 May 2016 11:12:36 +0000 (13:12 +0200)
commit802ac39a55664b15dd162e3444d5be34045abeeb
tree5fb2edf0bb2363387785ccfb9d3e8d290abed2a2
parentd15b08fb2246fa28b4cf01337951026177641af4
mmc: sdhci-of-arasan: fix set_clock when a phy is supported

commit 61b914eb81f8 ("mmc: sdhci-of-arasan: add phy support for
sdhci-of-arasan") introduce phy support for arasan. According to
the vendor's databook, we should make sure the phy is in poweroff
status before we configure the clk stuff. Otherwise it may cause
some IO sample timing issues from the test. And we don't need this
extra operation while running in low performance mode since phy
doesn't trigger sampling block.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c