From: kgene.kim@samsung.com (Kukjin Kim) Date: Thu, 24 May 2012 16:27:23 +0900 Subject: [PATCH 1/6] ARM: Exynos4: Fix the incorrect hierarchy of spi controller bus clock In-Reply-To: <1337334392-6441-2-git-send-email-thomas.abraham@linaro.org> References: <1337334392-6441-1-git-send-email-thomas.abraham@linaro.org> <1337334392-6441-2-git-send-email-thomas.abraham@linaro.org> Message-ID: <006601cd397e$a9932df0$fcb989d0$%kim@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Thomas Abraham wrote: > > The sclk_spi clock is derived currently from the first level divider > (MMCx_RATIO) which is incorrect. The output of the first level clock > is divided by a second level divider (MMCx_PRE_RATIO), the output of > which is used as the spi bus clock (sclk_spi). Fix the clock hierarchy > issues for the sclk_spi clock. > > Signed-off-by: Thomas Abraham > Acked-by: Jaswinder Singh > --- > arch/arm/mach-exynos/clock-exynos4.c | 48 ++++++++++++++++++++++++++++-- > --- > 1 files changed, 40 insertions(+), 8 deletions(-) > > diff --git a/arch/arm/mach-exynos/clock-exynos4.c b/arch/arm/mach- > exynos/clock-exynos4.c > index 10a46a9..b5f0507 100644 > --- a/arch/arm/mach-exynos/clock-exynos4.c > +++ b/arch/arm/mach-exynos/clock-exynos4.c > @@ -1242,40 +1242,70 @@ static struct clksrc_clk exynos4_clk_sclk_mmc3 = { > .reg_div = { .reg = EXYNOS4_CLKDIV_FSYS2, .shift = 24, .size = 8 }, > }; > > +static struct clksrc_clk exynos4_clk_mdout_spi0 = { In this case, it's expected that 'exynos4_clk_dout_spi0' will be used even though this indicates the clock of mux_out and divider_out together. > + .clk = { > + .name = "sclk_spi_mdout", So, this should be 'dout_spi0' > + .devname = "exynos4210-spi.0", [...] Thanks. Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.