lkml.org 
[lkml]   [2013]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.10 125/173] clk: armada-370: fix tclk frequencies
    Date
    3.10-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Simon Guinot <simon.guinot@sequanux.org>

    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>

    ---
    drivers/clk/mvebu/clk-core.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- 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(
    #define SARH_AXP_FAB_FREQ_OPT_SHIFT 4

    static const u32 __initconst armada_370_tclk_frequencies[] = {
    - 16600000,
    - 20000000,
    + 166000000,
    + 200000000,
    };

    static u32 __init armada_370_get_tclk_freq(void __iomem *sar)



    \
     
     \ /
      Last update: 2013-12-03 00:21    [W:4.060 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site