]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64f903747c45de64f3fbf489e6ca61dc3ca2b3b3
tree5fb2edf0bb2363387785ccfb9d3e8d290abed2a2
parent20310fddad19a2cb1d92ede6cdac09cab33036ae
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