1. 11 12月, 2013 2 次提交
    • L
      clocksource: clksrc-of: Warn if no clock sources are found · fdca679d
      Linus Walleij 提交于
      Many platforms rely on clocksource_of_init() being implicitly
      called for registering clock sources and will get zero warnings
      if no working clock source is available. Let's print a critical
      error message if no clock source is found.
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      fdca679d
    • T
      clocksource: clksrc-of: Do not drop unheld reference on device node · 4c4b0532
      Thierry Reding 提交于
      When booting a recent kernel on ARM with OF_DYNAMIC enabled, the kernel
      warns about the following:
      
      	[    0.000000] ERROR: Bad of_node_put() on /timer@50004600
      	[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.12.0-rc5-next-20131017-00077-gedfd827-dirty #406
      	[    0.000000] [<c0015b68>] (unwind_backtrace+0x0/0xf4) from [<c00117e4>] (show_stack+0x10/0x14)
      	[    0.000000] [<c00117e4>] (show_stack+0x10/0x14) from [<c055f734>] (dump_stack+0x9c/0xc8)
      	[    0.000000] [<c055f734>] (dump_stack+0x9c/0xc8) from [<c03b47d4>] (of_node_release+0x90/0x9c)
      	[    0.000000] [<c03b47d4>] (of_node_release+0x90/0x9c) from [<c03b5084>] (of_find_matching_node_and_match+0x78/0xb4)
      	[    0.000000] [<c03b5084>] (of_find_matching_node_and_match+0x78/0xb4) from [<c07887c8>] (clocksource_of_init+0x60/0x70)
      	[    0.000000] [<c07887c8>] (clocksource_of_init+0x60/0x70) from [<c076e99c>] (start_kernel+0x1f4/0x33c)
      	[    0.000000] [<c076e99c>] (start_kernel+0x1f4/0x33c) from [<80008074>] (0x80008074)
      
      This is caused by clocksource_of_init() dropping a reference on the
      device node that it never took. The reference taken by the loop is
      implicitly dropped on subsequent iterations. See the implementation of
      and the comment on top of the of_find_matching_node_and_match()
      function for reference (no pun intended).
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      4c4b0532
  2. 02 10月, 2013 1 次提交
  3. 26 9月, 2013 1 次提交
  4. 28 3月, 2013 1 次提交
  5. 20 3月, 2013 1 次提交
  6. 11 3月, 2013 1 次提交
  7. 03 1月, 2013 1 次提交
    • S
      clocksource: add common of_clksrc_init() function · ae278a93
      Stephen Warren 提交于
      It is desirable to move all clocksource drivers to drivers/clocksource,
      yet each requires its own initialization function. We'd rather not
      pollute <linux/> with a header for each function. Instead, create a
      single of_clksrc_init() function which will determine which clocksource
      driver to initialize based on device tree.
      
      Based on a similar patch for drivers/irqchip by Thomas Petazzoni.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      ae278a93
  8. 17 11月, 2012 1 次提交
    • S
      ARM: tegra: decouple uncompress.h and debug-macro.S · 1a6d3da8
      Stephen Warren 提交于
      Prior to this change, Tegra's debug-macro.S relied on uncompress.h having
      determined which UART to use, and whether it was safe to use the UART
      (i.e. is it not in reset, and is clocked). This determination was
      communicated from uncompress.h to debug-macro.S using a few bytes of
      Tegra's IRAM (an on-SoC RAM). This had the disadvantage that uncompress.h
      was a required part of the kernel boot process; booting a non-compressed
      kernel would not allow earlyprintk to operate.
      
      This change duplicates the UART selection and validation logic into
      debug-macro.S so that the reliance on uncompress.h is removed.
      
      This also helps out with single-zImage work, since there is currently no
      support for using any uncompress.h with single-zImage.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      1a6d3da8
  9. 06 11月, 2012 1 次提交
    • S
      ARM: tegra: move irammap.h to mach-tegra · bb1de887
      Stephen Warren 提交于
      Nothing outside mach-tegra uses this file, so there's no need for it to
      be in <mach/>.
      
      Since uncompress.h and debug-macro.S remain in include/mach, they need
      to include "../../irammap.h" becaue of this change. Both these usages
      will be removed shortly, when Tegra's DEBUG_LL implementation is updated
      not to pass information through IRAM.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      bb1de887
  10. 07 2月, 2012 1 次提交