clk: rockchip: reset init state before mmc card initialization
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 4 Sep 2015 00:15:33 +0000 (08:15 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 1 Oct 2015 23:36:54 +0000 (16:36 -0700)
commit7a03fe6f48f35bbf5f5c3cb46f02e8c90b26b238
tree438cdf659a0a6bb645c863e58be173578d0ce4eb
parent7a29f3f02028bff1a44daa61c3eabb5dd2c89de5
clk: rockchip: reset init state before mmc card initialization

mmc host controller's IO input/output timing is unpredictable if
bootloader execute tuning for HS200 mode. It might make kernel failed
to initialize mmc card in identification mode. The root cause is
tuning phase and degree setting for HS200 mode in bootloader aren't
applicable to that of identification mode in kernel stage. Anyway, we
can't force all bootloaders to reset tuning phase and degree setting
before into kernel. Simply reset it in rockchip_clk_register_mmc.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/rockchip/clk-mmc-phase.c