]> git.baikalelectronics.ru Git - kernel.git/commit
clk: renesas: r8a7795: Fix SD clocks
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 10 Aug 2016 07:29:43 +0000 (09:29 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 12 Aug 2016 00:47:56 +0000 (17:47 -0700)
commitbbf291822c7482a8e76f6a72bf0a40c70e947852
tree66f09380156b7555002f2396db771c2d18568362
parent663740c33ccd8445d4582c452eaa50413d01bf66
clk: renesas: r8a7795: Fix SD clocks

According to the datasheet, SDn clocks are from the SDSRC clock. And
the SDSRC has a 1/2 divider. So, we should have ".sdsrc" as an internal
core clock. Otherwise, since the sdhi driver will calculate clock for
a sd card using the wrong parent clock rate, and then performance will
be not good.

Fixes: 4c4c95f89c25cb99 ("clk: shmobile: r8a7795: Add SD divider support")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: stable@vger.kernel.org
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/renesas/r8a7795-cpg-mssr.c