]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7bd47cd7e8c73bc6c0ed2f12f20c61fadf080b2f
tree438cdf659a0a6bb645c863e58be173578d0ce4eb
parent8765ae3b8ca76178866d51e1b14d98fe3b229891
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