1. 05 7月, 2010 3 次提交
  2. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  3. 18 2月, 2010 1 次提交
    • R
      omap: Remove DEBUG_FS dependency for mux name checking · b72c7d54
      Ranjith Lohithakshan 提交于
      The check for a valid mux name should be performed regardless of whether
      DEBUG_FS is enabled or not. Otherwise without DEBUG_FS, we get:
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000000
      pgd = c0004000
      [00000000] *pgd=00000000
      Internal error: Oops: 5 [#1]
      last sysfs file:
      Modules linked in:
      CPU: 0    Not tainted  (2.6.33-rc8 #10)
      PC is at strcmp+0x18/0x40
      LR is at omap_mux_init_signal+0x68/0x14c
      ...
      
      This fixes the issue currently seen with boards not booting up
      if DEBUG_FS is not enabled in defconfig.
      
      Note that the earlier ifndef + ifdef now becomes simpler ifdef else:
      If CONFIG_OMAP_MUX is selected, we use pin names. If it's not selected,
      we only want the GPIO to mux register mapping.
      Signed-off-by: NRanjith Lohithakshan <ranjithl@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b72c7d54
  4. 16 2月, 2010 3 次提交
  5. 04 2月, 2010 2 次提交
    • T
      omap: Fix arch/arm/mach-omap2/mux.c: Off by one error · 78737ae1
      Tony Lindgren 提交于
      David Binderman ran the sourceforge tool cppcheck over the source code of the
      new Linux kernel 2.6.33-rc6:
      
      [./arm/mach-omap2/mux.c:492]: (error) Buffer access out-of-bounds
      
      13 characters + 1 digit + 1 zero byte is more than 14 characters.
      
      Also add a comment on mode0 name length in case new omaps
      start using longer names.
      Reported-by: NDavid Binderman <dcb314@hotmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      78737ae1
    • T
      omap: Fix 3630 mux errors · 9ecef433
      Tony Lindgren 提交于
      3630 has more mux signals than 34xx. The additional pins
      exist in omap36xx_cbp_subset, but are not initialized
      as the superset is missing these offsets. This causes
      the following errors during the boot:
      
      mux: Unknown entry offset 0x236
      mux: Unknown entry offset 0x22e
      mux: Unknown entry offset 0x1ec
      mux: Unknown entry offset 0x1ee
      mux: Unknown entry offset 0x1f4
      mux: Unknown entry offset 0x1f6
      mux: Unknown entry offset 0x1f8
      mux: Unknown entry offset 0x1fa
      mux: Unknown entry offset 0x1fc
      mux: Unknown entry offset 0x22a
      mux: Unknown entry offset 0x226
      mux: Unknown entry offset 0x230
      mux: Unknown entry offset 0x22c
      mux: Unknown entry offset 0x228
      
      Fix this by adding the missing offsets to omap3 superset.
      Note that additionally the uninitialized pins need to be
      skipped on 34xx.
      
      Based on an earlier patch by Allen Pais <allen.pais@ti.com>.
      Reported-by: NAllen Pais <allen.pais@ti.com>
      Signed-off-by: NAllen Pais <allen.pais@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      9ecef433
  6. 20 1月, 2010 2 次提交
  7. 09 1月, 2010 1 次提交
    • T
      omap3: Fix booting if package is uninitialized · d04eb600
      Tony Lindgren 提交于
      Otherwise bringing up new boards can be harder:
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000000
      pgd = c0004000
      [00000000] *pgd=00000000
      Internal error: Oops: 5 [#1]
      last sysfs file:
      Modules linked in:
      CPU: 0    Not tainted  (2.6.33-rc2-00015-g0bc9c93-dirty #37)
      PC is at omap_mux_init+0xa4/0x3d8
      LR is at omap_mux_init+0x3c/0x3d8
      ...
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d04eb600
  8. 12 12月, 2009 4 次提交
  9. 23 11月, 2009 2 次提交
  10. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  11. 25 9月, 2009 2 次提交
  12. 03 9月, 2009 1 次提交
  13. 29 8月, 2009 1 次提交
  14. 25 7月, 2009 1 次提交
    • J
      OMAP3: Setup MUX settings for SDRC CKE signals · 9fb97412
      Jean Pihet 提交于
      This patches ensures the MUX settings are correct for the SDRC
      CKE signals to SDRAM. This allows the self-refresh to work when
      2 chip-selects are in use.
      
      A warning is thrown away in case the initial muxing is incorrect,
      in order to track faulty or old-dated bootloaders.
      Note: The CONFIG_OMAP_MUX and CONFIG_OMAP_MUX_WARNINGS options
      must be enabled for the mux code to have effect.
      Signed-off-by: NJean Pihet <jpihet@mvista.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      9fb97412
  15. 24 3月, 2009 1 次提交
    • T
      ARM: OMAP3: Add more GPIO mux options · b9d766c7
      Tony Lindgren 提交于
      This patch adds several new GPIO pins and updates
      the pin naming comments.
      
      The patch is based on earlier patches on linux-omap
      list by Manikandan Pillai <mani.pillai@ti.com>,
      Vaibhav Hiremath <hvaibhav@ti.com> and
      David Brownell <dbrownell@users.sourceforge.net>.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b9d766c7
  16. 11 12月, 2008 1 次提交
  17. 09 10月, 2008 1 次提交
    • S
      ARM: OMAP3: Add minimal omap3430 support · cc26b3b0
      Syed Mohammed, Khasim 提交于
      Add minimal omap3430 support based on earlier patches from
      Syed Mohammed Khasim. Also merge in omap34xx SRAM support
      from Karthik Dasu and use consistent naming for sram init
      functions.
      
      Also do following changes that make 34xx support usable:
      
      - Remove unused sram.c functions for 34xx
      
      - Rename IRQ_SIR_IRQ to INTCPS_SIR_IRQ and define it locally
        in entry-macro.S
      
      - Update mach-omap2/io.c to support 2420, 2430, and 34xx
      
      - Also merge in 34xx GPMC changes to add fields wr_access and
        wr_data_mux_bus from Adrian Hunter
      
      - Remove memory initialization call omap2_init_memory() until
        until more generic memory initialization patches are posted.
        It's OK to rely on bootloader initialization until then.
      Signed-off-by: NSyed Mohammed, Khasim <khasim@ti.com>
      Signed-off-by: Karthik Dasu<karthik-dp@ti.com>
      Signed-off-by: NAdrian Hunter <ext-adrian.hunter@nokia.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      
      
      
      cc26b3b0
  18. 06 10月, 2008 1 次提交
  19. 06 9月, 2008 1 次提交
  20. 07 8月, 2008 1 次提交
  21. 03 7月, 2008 1 次提交
  22. 15 4月, 2008 5 次提交
  23. 21 9月, 2007 1 次提交
  24. 11 5月, 2007 1 次提交
  25. 25 9月, 2006 1 次提交