From: Shawn Lin Date: Fri, 13 May 2016 00:28:15 +0000 (+0800) Subject: Revert "clk: rockchip: reset init state before mmc card initialization" X-Git-Tag: firefly_0821_release~2651 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1deaaa33b1c6f5f6fe0b93bca6dca1ac74f288ba;p=firefly-linux-kernel-4.4.55.git Revert "clk: rockchip: reset init state before mmc card initialization" This reverts commit 7a03fe6f48f35bbf5f5c3cb46f02e8c90b26b238. We need a new patch for dw_mmc to deal with phase policy in case of new register layout, otherwise it will break phase stuff for some case Change-Id: Iffb7a6dbe0b17d27c2cca4b2b99ddbc4e0736f18 Signed-off-by: Shawn Lin --- diff --git a/drivers/clk/rockchip/clk-mmc-phase.c b/drivers/clk/rockchip/clk-mmc-phase.c index 2685644826a0..bc24e5a002e7 100644 --- a/drivers/clk/rockchip/clk-mmc-phase.c +++ b/drivers/clk/rockchip/clk-mmc-phase.c @@ -41,8 +41,6 @@ static unsigned long rockchip_mmc_recalc(struct clk_hw *hw, #define ROCKCHIP_MMC_DEGREE_MASK 0x3 #define ROCKCHIP_MMC_DELAYNUM_OFFSET 2 #define ROCKCHIP_MMC_DELAYNUM_MASK (0xff << ROCKCHIP_MMC_DELAYNUM_OFFSET) -#define ROCKCHIP_MMC_INIT_STATE_RESET 0x1 -#define ROCKCHIP_MMC_INIT_STATE_SHIFT 1 #define PSECS_PER_SEC 1000000000000LL @@ -161,15 +159,6 @@ struct clk *rockchip_clk_register_mmc(const char *name, mmc_clock->reg = reg; mmc_clock->shift = shift; - /* - * Assert init_state to soft reset the CLKGEN - * for mmc tuning phase and degree - */ - if (mmc_clock->shift == ROCKCHIP_MMC_INIT_STATE_SHIFT) - writel(HIWORD_UPDATE(ROCKCHIP_MMC_INIT_STATE_RESET, - ROCKCHIP_MMC_INIT_STATE_RESET, - mmc_clock->shift), mmc_clock->reg); - clk = clk_register(NULL, &mmc_clock->hw); if (IS_ERR(clk)) goto err_free;