1. 06 10月, 2014 1 次提交
  2. 04 10月, 2014 2 次提交
  3. 02 10月, 2014 1 次提交
  4. 01 10月, 2014 13 次提交
  5. 30 9月, 2014 2 次提交
  6. 29 9月, 2014 6 次提交
    • P
      clk: ti: dra7-atl-clock: Mark the device as pm_runtime_irq_safe · 04ed831f
      Peter Ujfalusi 提交于
      It is safe to call the pm sync calls in interrupt context in this driver.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      04ed831f
    • B
      clk: ti: LLVMLinux: Move __init outside of type definition · e8627a9e
      Behan Webster 提交于
      As written, the __init for ti_clk_get_div_table is in the middle of the return
      type.
      
      The gcc documentation indicates that section attributes should be added to the
      end of the function declaration:
      
        extern void foobar (void) __attribute__ ((section ("bar")));
      
      However gcc seems to be very permissive with where attributes can be placed.
      clang on the other hand isn't so permissive, and fails if you put the section
      definition in the middle of the return type:
      
      drivers/clk/ti/divider.c:298:28: error: expected ';' after struct
      static struct clk_div_table
                                 ^
                                 ;
      drivers/clk/ti/divider.c:298:1: warning: 'static' ignored on this
            declaration [-Wmissing-declarations]
      static struct clk_div_table
      ^
      drivers/clk/ti/divider.c:299:9: error: type specifier missing,
            defaults to 'int' [-Werror,-Wimplicit-int]
      __init *ti_clk_get_div_table(struct device_node *node)
      ~~~~~~  ^
      drivers/clk/ti/divider.c:345:9: warning: incompatible pointer types
            returning 'struct clk_div_table *' from a function with result type 'int *' [-Wincompatible-pointer-types]
              return table;
                     ^~~~~
      drivers/clk/ti/divider.c:419:9: warning: incompatible pointer types
            assigning to 'const struct clk_div_table *' from 'int *' [-Wincompatible-pointer-types]
              *table = ti_clk_get_div_table(node);
                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
      3 warnings and 2 errors generated.
      
      By convention, most of the kernel code puts section attributes between the
      return type and function name. In the case where the return type is a pointer,
      it's important to place the '*' on left of the __init.
      
      This updated code works for both gcc and clang.
      Signed-off-by: NBehan Webster <behanw@converseincode.com>
      Reviewed-by: NMark Charlebois <charlebm@gmail.com>
      Reviewed-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      e8627a9e
    • S
      clk: ti: consider the fact that of_clk_get() might return an error · 319f1276
      Sebastian Andrzej Siewior 提交于
      I "forgot" to update the dtb and the kernel crashed:
      |Unable to handle kernel NULL pointer dereference at virtual address 0000002e
      |PC is at __clk_get_flags+0x4/0xc
      |LR is at ti_dt_clockdomains_setup+0x70/0xe8
      
      because I did not have the clock nodes. of_clk_get() returns an error
      pointer which is not checked here.
      Acked-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      319f1276
    • T
      clk: ti: dra7-atl-clock: fix a memory leak · 73b5d5f7
      Tero Kristo 提交于
      of_clk_add_provider makes an internal copy of the parent_names property
      while its called, thus it is no longer needed after this call and can
      be freed.
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      Cc: Mike Turquette <mturquette@linaro.org>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Acked-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      73b5d5f7
    • T
      clk: ti: change clock init to use generic of_clk_init · c08ee14c
      Tero Kristo 提交于
      Previously, the TI clock driver initialized all the clocks hierarchically
      under each separate clock provider node. Now, each clock that requires
      IO access will instead check their parent node to find out which IO range
      to use.
      
      This patch allows the TI clock driver to use a few new features provided
      by the generic of_clk_init, and also allows registration of clock nodes
      outside the clock hierarchy (for example, any external clocks.)
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      Cc: Mike Turquette <mturquette@linaro.org>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Cc: Stefan Assmann <sassmann@kpanic.de>
      Acked-by: NTony Lindgren <tony@atomide.com>
      c08ee14c
    • M
      Merge tag 'hix5hd2-clock-for-3.18-v2' of git://github.com/hisilicon/linux-hisi into clk-next · 6e18ff26
      Mike Turquette 提交于
      Hisilicon HiX5HD2 clock updates for 3.18-v2
      
      - Add I2C clocks
      - Add watchdog clocks
      - Add sd clocks
      - Add complex clock implementation to support sata, usb and ethernet
      6e18ff26
  7. 28 9月, 2014 7 次提交
  8. 27 9月, 2014 8 次提交