mmc: sdhci-of-arasan: refactor set_clock callback
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 25 Apr 2016 02:08:27 +0000 (10:08 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 25 Apr 2016 10:30:39 +0000 (18:30 +0800)
commit68eac41717dd11b0485b2c8a1c3bdc1aaad34237
tree31b4fece3f1159de3d0292025520dbe7fd8aceb0
parent9faaf821a7f0115c300b418d09dd07979b3de989
mmc: sdhci-of-arasan: refactor set_clock callback

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
stat before we configure the clk stuff. Otherwise it may cause
some IO sample timing issue from the test. But we don't need this
extra operation while running in non HS200/HS400 mode since phy
doesn't trigger sampling block.

Change-Id: I5506f99e5a3b4d9a4356ad485ceac900c6d754aa
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/host/sdhci-of-arasan.c