linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228
@ 2016-01-26  3:30 Shawn Lin
  2016-01-27  9:56 ` Xing Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shawn Lin @ 2016-01-26  3:30 UTC (permalink / raw)
  To: Heiko Stuebner, Michael Turquette, Stephen Boyd
  Cc: linux-clk, linux-rockchip, linux-kernel, Shawn Lin, Xing Zheng,
	Jeffy Chen

mmc sample shift is 0 for rk3228 refer to user manaul.
So it's broken if we enable mmc tuning for rk3228.

Fixes: 307a2e9ac ("clk: rockchip: add clock controller for rk3228")
Cc: Xing Zheng <zhengxing@rock-chips.com>
Cc: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 drivers/clk/rockchip/clk-rk3228.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk-rk3228.c
index 981a502..97f49aa 100644
--- a/drivers/clk/rockchip/clk-rk3228.c
+++ b/drivers/clk/rockchip/clk-rk3228.c
@@ -605,13 +605,13 @@ static struct rockchip_clk_branch rk3228_clk_branches[] __initdata = {
 
 	/* PD_MMC */
 	MMC(SCLK_SDMMC_DRV,    "sdmmc_drv",    "sclk_sdmmc", RK3228_SDMMC_CON0, 1),
-	MMC(SCLK_SDMMC_SAMPLE, "sdmmc_sample", "sclk_sdmmc", RK3228_SDMMC_CON1, 1),
+	MMC(SCLK_SDMMC_SAMPLE, "sdmmc_sample", "sclk_sdmmc", RK3228_SDMMC_CON1, 0),
 
 	MMC(SCLK_SDIO_DRV,     "sdio_drv",     "sclk_sdio",  RK3228_SDIO_CON0,  1),
-	MMC(SCLK_SDIO_SAMPLE,  "sdio_sample",  "sclk_sdio",  RK3228_SDIO_CON1,  1),
+	MMC(SCLK_SDIO_SAMPLE,  "sdio_sample",  "sclk_sdio",  RK3228_SDIO_CON1,  0),
 
 	MMC(SCLK_EMMC_DRV,     "emmc_drv",     "sclk_emmc",  RK3228_EMMC_CON0,  1),
-	MMC(SCLK_EMMC_SAMPLE,  "emmc_sample",  "sclk_emmc",  RK3228_EMMC_CON1,  1),
+	MMC(SCLK_EMMC_SAMPLE,  "emmc_sample",  "sclk_emmc",  RK3228_EMMC_CON1,  0),
 };
 
 static const char *const rk3228_critical_clocks[] __initconst = {
-- 
2.3.7

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228
  2016-01-26  3:30 [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228 Shawn Lin
@ 2016-01-27  9:56 ` Xing Zheng
  2016-01-28 17:04 ` Heiko Stübner
  2016-01-30  0:31 ` Stephen Boyd
  2 siblings, 0 replies; 4+ messages in thread
From: Xing Zheng @ 2016-01-27  9:56 UTC (permalink / raw)
  To: Shawn Lin
  Cc: Heiko Stuebner, Michael Turquette, Stephen Boyd, linux-clk,
	linux-rockchip, linux-kernel, Jeffy Chen

Hi Shawn,
Reviewed-by: Xing Zheng <zhengxing@rock-chips.com>

Thanks.

On 2016年01月26日 11:30, Shawn Lin wrote:
> mmc sample shift is 0 for rk3228 refer to user manaul.
> So it's broken if we enable mmc tuning for rk3228.
>
> Fixes: 307a2e9ac ("clk: rockchip: add clock controller for rk3228")
> Cc: Xing Zheng<zhengxing@rock-chips.com>
> Cc: Jeffy Chen<jeffy.chen@rock-chips.com>
> Signed-off-by: Shawn Lin<shawn.lin@rock-chips.com>
> ---
>
>   drivers/clk/rockchip/clk-rk3228.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk-rk3228.c
> index 981a502..97f49aa 100644
> --- a/drivers/clk/rockchip/clk-rk3228.c
> +++ b/drivers/clk/rockchip/clk-rk3228.c
> @@ -605,13 +605,13 @@ static struct rockchip_clk_branch rk3228_clk_branches[] __initdata = {
>
>   	/* PD_MMC */
>   	MMC(SCLK_SDMMC_DRV,    "sdmmc_drv",    "sclk_sdmmc", RK3228_SDMMC_CON0, 1),
> -	MMC(SCLK_SDMMC_SAMPLE, "sdmmc_sample", "sclk_sdmmc", RK3228_SDMMC_CON1, 1),
> +	MMC(SCLK_SDMMC_SAMPLE, "sdmmc_sample", "sclk_sdmmc", RK3228_SDMMC_CON1, 0),
>
>   	MMC(SCLK_SDIO_DRV,     "sdio_drv",     "sclk_sdio",  RK3228_SDIO_CON0,  1),
> -	MMC(SCLK_SDIO_SAMPLE,  "sdio_sample",  "sclk_sdio",  RK3228_SDIO_CON1,  1),
> +	MMC(SCLK_SDIO_SAMPLE,  "sdio_sample",  "sclk_sdio",  RK3228_SDIO_CON1,  0),
>
>   	MMC(SCLK_EMMC_DRV,     "emmc_drv",     "sclk_emmc",  RK3228_EMMC_CON0,  1),
> -	MMC(SCLK_EMMC_SAMPLE,  "emmc_sample",  "sclk_emmc",  RK3228_EMMC_CON1,  1),
> +	MMC(SCLK_EMMC_SAMPLE,  "emmc_sample",  "sclk_emmc",  RK3228_EMMC_CON1,  0),
>   };
>
>   static const char *const rk3228_critical_clocks[] __initconst = {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228
  2016-01-26  3:30 [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228 Shawn Lin
  2016-01-27  9:56 ` Xing Zheng
@ 2016-01-28 17:04 ` Heiko Stübner
  2016-01-30  0:31 ` Stephen Boyd
  2 siblings, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2016-01-28 17:04 UTC (permalink / raw)
  To: Shawn Lin
  Cc: Michael Turquette, Stephen Boyd, linux-clk, linux-rockchip,
	linux-kernel, Xing Zheng, Jeffy Chen

Am Dienstag, 26. Januar 2016, 11:30:18 schrieb Shawn Lin:
> mmc sample shift is 0 for rk3228 refer to user manaul.
> So it's broken if we enable mmc tuning for rk3228.
> 
> Fixes: 307a2e9ac ("clk: rockchip: add clock controller for rk3228")
> Cc: Xing Zheng <zhengxing@rock-chips.com>
> Cc: Jeffy Chen <jeffy.chen@rock-chips.com>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

applied to my clk branch for 4.6 with Xing's review


Thanks
Heiko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228
  2016-01-26  3:30 [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228 Shawn Lin
  2016-01-27  9:56 ` Xing Zheng
  2016-01-28 17:04 ` Heiko Stübner
@ 2016-01-30  0:31 ` Stephen Boyd
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2016-01-30  0:31 UTC (permalink / raw)
  To: Shawn Lin
  Cc: Heiko Stuebner, Michael Turquette, linux-clk, linux-rockchip,
	linux-kernel, Xing Zheng, Jeffy Chen

On 01/26, Shawn Lin wrote:
> mmc sample shift is 0 for rk3228 refer to user manaul.
> So it's broken if we enable mmc tuning for rk3228.
> 
> Fixes: 307a2e9ac ("clk: rockchip: add clock controller for rk3228")
> Cc: Xing Zheng <zhengxing@rock-chips.com>
> Cc: Jeffy Chen <jeffy.chen@rock-chips.com>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
> ---

Acked-by: Stephen Boyd <sboyd@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-30  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-26  3:30 [PATCH] clk: rockchip: fix wrong mmc phase shift for rk3228 Shawn Lin
2016-01-27  9:56 ` Xing Zheng
2016-01-28 17:04 ` Heiko Stübner
2016-01-30  0:31 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).