aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Guinot <simon.guinot@sequanux.org>2013-10-03 06:05:02 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 13:57:19 -0500
commit0e6a2932d63564f8f5eb81c9fbe22ba1ba8d19df (patch)
treea81c6eafebb288b160ede2ba6e8d007619e1a29e
parent16802f7ac3a42b6e97af4e9b203adfa7bbb25994 (diff)
clk: armada-370: fix tclk frequencies
commit 1022c75f5abd3a3b25e679bc8793d21bedd009b4 upstream. This patch fixes the tclk frequency array for the Armada-370 SoC. This bug has been introduced by commit 6b72333d ("clk: mvebu: add Armada 370 SoC-centric clock init"). A wrong tclk frequency affects the following drivers: mvsdio, mvneta, i2c-mv64xxx and mvebu-devbus. This list may be incomplete. About the mvneta Ethernet driver, note that the tclk frequency is used to compute the Rx time coalescence. Then, this bug harms the coalescence configuration and also degrades the networking performances with the default values. Signed-off-by: Simon Guinot <simon.guinot@sequanux.org> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Michael Turquette <mturquette@deferred.io> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/clk/mvebu/clk-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/mvebu/clk-core.c b/drivers/clk/mvebu/clk-core.c
index 0a53edbae8b8..e5c477b49934 100644
--- a/drivers/clk/mvebu/clk-core.c
+++ b/drivers/clk/mvebu/clk-core.c
@@ -126,8 +126,8 @@ static void __init mvebu_clk_core_setup(struct device_node *np,
126#define SARH_AXP_FAB_FREQ_OPT_SHIFT 4 126#define SARH_AXP_FAB_FREQ_OPT_SHIFT 4
127 127
128static const u32 __initconst armada_370_tclk_frequencies[] = { 128static const u32 __initconst armada_370_tclk_frequencies[] = {
129 16600000, 129 166000000,
130 20000000, 130 200000000,
131}; 131};
132 132
133static u32 __init armada_370_get_tclk_freq(void __iomem *sar) 133static u32 __init armada_370_get_tclk_freq(void __iomem *sar)