1. 13 5月, 2009 1 次提交
  2. 23 4月, 2009 1 次提交
    • P
      OMAP2xxx clock: pre-initialize struct clks early · c8088112
      Paul Walmsley 提交于
      Commit 3f0a820c breaks OMAP2xxx boot
      during initial propagate_rate() on osc_ck and sys_ck.  Fix by
      pre-initializing all struct clks before running any other clock init
      code.  Incorporates review comments from Russell King
      <rmk+kernel@arm.linux.org.uk>.
      
      Resolves
      
      <1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
      <1>pgd = c0004000
      <1>[00000000] *pgd=00000000
      Internal error: Oops: 5 [#1]
      Modules linked in:
      CPU: 0    Not tainted  (2.6.29-omap1 #37)
      PC is at propagate_rate+0x10/0x60
      LR is at omap2_clk_init+0x30/0x218
      ...
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Tested-by: NJarkko Nikula <jarkko.nikula@nokia.com>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      c8088112
  3. 03 3月, 2009 1 次提交
    • R
      [ARM] omap: clk_set_parent: deny changing parent if clock is enabled · 4da37821
      Russell King 提交于
      Richard Woodruff writes:
      | The historic usage of this has been against single use leaf clocks
      | (1st instance of gptimer).  When it was used it did:
      |       clk_get()
      |       clk_set_parent()
      |       clk_enable()
      |
      | This usage was ok for that. Use on a disabled clock is needed.
      |
      | If there are multiple users on the clock or it is enabled there are
      | problems.
      |
      | The call can still be unfriendly if 2 different drivers are using the
      | clock with their own clock get/enable. It might be the function should
      | return an error if usecount != 0 to stop surprises.  It is all around
      | better if the parenting is done when the clock is off.
      
      This is a good reason to ensure that the clock is not enabled when
      clk_set_parent() is called.
      Acked-by: NRichard Woodruff <r-woodruff2@ti.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      4da37821
  4. 14 2月, 2009 1 次提交
    • R
      [ARM] omap: arrange for clock recalc methods to return the rate · 8b9dbc16
      Russell King 提交于
      linux-omap source commit 33d000c99ee393fe2042f93e8422f94976d276ce
      introduces a way to "dry run" clock changes before they're committed.
      However, this involves putting logic to handle this into each and
      every recalc function, and unfortunately due to the caching, led to
      some bugs.
      
      Solve both of issues by making the recalc methods always return the
      clock rate for the clock, which the caller decides what to do with.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      8b9dbc16
  5. 09 2月, 2009 10 次提交
  6. 08 2月, 2009 2 次提交
  7. 05 11月, 2008 1 次提交
  8. 06 9月, 2008 1 次提交
  9. 24 8月, 2008 1 次提交
  10. 07 8月, 2008 1 次提交
  11. 03 7月, 2008 1 次提交
    • H
      ARM: OMAP: CLKFW: Initial debugfs support for omap clock framework · 137b3ee2
      Hiroshi DOYU 提交于
      debugfs can provide the infrastructure to trace the dependencies of
      clock tree hierarchy quite visibly. This patch enables to keep track
      of clock tree hierarchy and expose their attributes under each clock
      directry as below:
      
      	omap:~# tree -d -L 2 /debug/clock/omap_32k_fck/
      	/debug/clock/omap_32k_fck/
      	|-- gpt10_fck
      	|-- gpt11_fck
      	|-- gpt1_fck
      	|-- per_32k_alwon_fck
      	|   |-- gpio2_fck
      	|   |-- gpio3_fck
      	|   |-- gpio4_fck
      	|   |-- gpio5_fck
      	|   |-- gpio6_fck
      	|   `-- wdt3_fck
      	|-- ts_fck
      	`-- wkup_32k_fck
      	    |-- gpio1_fck
      	    `-- wdt2_fck
      
      	14 directories
      	omap:~# tree  /debug/clock/omap_32k_fck/gpt10_fck/
      	/debug/clock/omap_32k_fck/gpt10_fck/
      	|-- flags
      	|-- rate
      	`-- usecount
      
      	0 directories, 3 files
      
      Although, compared with David Brownell's small patch, this may look
      bit overkilling, I expect that this debugfs can deal with other PRCM
      complexities at the same time. For example, powerdomain dependencies
      can be expressed by using symbolic links of these clocks if
      powerdomain supports dubgfs as well.
      Signed-off-by: NHiroshi DOYU <Hiroshi.DOYU@nokia.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      137b3ee2
  12. 22 5月, 2008 1 次提交
    • R
      [ARM] omap: fix omap clk support build errors · b851cb28
      Russell King 提交于
      arch/arm/plat-omap/clock.c:397: warning: "struct cpufreq_frequency_table" declared inside parameter list
      arch/arm/plat-omap/clock.c:397: warning: its scope is only this definition or declaration, which is probably not what you want
      arch/arm/plat-omap/clock.c: In function `clk_init_cpufreq_table':
      arch/arm/plat-omap/clock.c:402: error: structure has no member named `clk_init_cpufreq_table'
      arch/arm/plat-omap/clock.c:403: error: structure has no member named `clk_init_cpufreq_table'
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b851cb28
  13. 10 5月, 2008 1 次提交
  14. 19 4月, 2008 1 次提交
  15. 15 4月, 2008 1 次提交
  16. 09 5月, 2007 2 次提交
  17. 25 9月, 2006 2 次提交
  18. 01 7月, 2006 1 次提交
  19. 27 6月, 2006 1 次提交
  20. 10 4月, 2006 1 次提交
  21. 03 4月, 2006 1 次提交
  22. 18 1月, 2006 1 次提交
  23. 13 1月, 2006 1 次提交
  24. 08 1月, 2006 1 次提交
  25. 10 11月, 2005 1 次提交
  26. 31 10月, 2005 1 次提交
    • T
      [PATCH] fix missing includes · 4e57b681
      Tim Schmielau 提交于
      I recently picked up my older work to remove unnecessary #includes of
      sched.h, starting from a patch by Dave Jones to not include sched.h
      from module.h. This reduces the number of indirect includes of sched.h
      by ~300. Another ~400 pointless direct includes can be removed after
      this disentangling (patch to follow later).
      However, quite a few indirect includes need to be fixed up for this.
      
      In order to feed the patches through -mm with as little disturbance as
      possible, I've split out the fixes I accumulated up to now (complete for
      i386 and x86_64, more archs to follow later) and post them before the real
      patch.  This way this large part of the patch is kept simple with only
      adding #includes, and all hunks are independent of each other.  So if any
      hunk rejects or gets in the way of other patches, just drop it.  My scripts
      will pick it up again in the next round.
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4e57b681
  27. 08 9月, 2005 1 次提交
    • T
      [ARM] 2887/1: OMAP 2/4: Update files common to omap1 and omap2, take 2 · 92105bb7
      Tony Lindgren 提交于
      Patch from Tony Lindgren
      
      This patch syncs the mainline kernel with linux-omap tree.
      The highlights of the patch are:
      - Clock updates by Tuukka Tikkanen, Juha Yrjola,
        Daniel Petrini and Tony Lindgren
      - DMA fixes by Imre Deak, Juha Yrjola and Daniel Petrini
      - Add support to dual-mode hardware timers by Lauri Leukkunen
      - GPIO support for 24xx by Paul Mundt
      - GPIO wake-up support by Tony Lindgren
      - Better GPIO interrupt handler to not lose interrupts by
        Ralph Walden and Ladislav Michl
      - Power Management updates by Tuukka Tikkanen
      - Make Power Management code use new SRAM functions by
        Tony Lindgren
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      92105bb7
  28. 11 7月, 2005 1 次提交