An error occurred fetching the project authors.
  1. 01 Oct, 2010 1 commit
  2. 24 Sep, 2010 1 commit
    • Sanjeev Premi's avatar
      omap2: fix assorted compiler warnings · ca828760
      Sanjeev Premi authored
      This patch fixes these compiler warnings:
      
        CC      arch/arm/mach-omap2/mux.o
      arch/arm/mach-omap2/mux.c: In function 'omap_mux_init_gpio':
      arch/arm/mach-omap2/mux.c:90: warning: 'gpio_mux' may be used uninitial
      ized in this function
      
        CC      arch/arm/plat-omap/gpio.o
      arch/arm/plat-omap/gpio.c: In function 'omap2_gpio_resume_after_idle':
      arch/arm/plat-omap/gpio.c:2152: warning: 'l' may be used uninitialized
      in this function
      arch/arm/plat-omap/gpio.c: In function 'omap2_gpio_prepare_for_idle':
      arch/arm/plat-omap/gpio.c:2085: warning: 'l2' may be used uninitialized
      in this function
      arch/arm/plat-omap/gpio.c:2085: warning: 'l1' may be used uninitialized
      in this function
      
        CC      arch/arm/mach-omap2/board-omap4panda.o
      arch/arm/mach-omap2/board-omap4panda.c: In function 'omap4_panda_init':
      arch/arm/mach-omap2/board-omap4panda.c:277: warning: unused variable 's
      tatus'
      Signed-off-by: default avatarSanjeev Premi <premi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ca828760
  3. 02 Aug, 2010 1 commit
  4. 05 Jul, 2010 3 commits
  5. 30 Mar, 2010 1 commit
    • Tejun Heo's avatar
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo authored
      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: default avatarTejun Heo <tj@kernel.org>
      Guess-its-ok-by: default avatarChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  6. 17 Feb, 2010 1 commit
    • Ranjith Lohithakshan's avatar
      omap: Remove DEBUG_FS dependency for mux name checking · b72c7d54
      Ranjith Lohithakshan authored
      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: default avatarRanjith Lohithakshan <ranjithl@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      b72c7d54
  7. 15 Feb, 2010 3 commits
  8. 03 Feb, 2010 2 commits
    • Tony Lindgren's avatar
      omap: Fix arch/arm/mach-omap2/mux.c: Off by one error · 78737ae1
      Tony Lindgren authored
      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: default avatarDavid Binderman <dcb314@hotmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      78737ae1
    • Tony Lindgren's avatar
      omap: Fix 3630 mux errors · 9ecef433
      Tony Lindgren authored
      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: default avatarAllen Pais <allen.pais@ti.com>
      Signed-off-by: default avatarAllen Pais <allen.pais@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      9ecef433
  9. 20 Jan, 2010 2 commits
  10. 08 Jan, 2010 1 commit
    • Tony Lindgren's avatar
      omap3: Fix booting if package is uninitialized · d04eb600
      Tony Lindgren authored
      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: default avatarTony Lindgren <tony@atomide.com>
      d04eb600
  11. 12 Dec, 2009 4 commits
  12. 22 Nov, 2009 2 commits
  13. 20 Oct, 2009 1 commit
    • Tony Lindgren's avatar
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren authored
      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: default avatarTony Lindgren <tony@atomide.com>
      ce491cf8
  14. 24 Sep, 2009 2 commits
  15. 02 Sep, 2009 1 commit
  16. 28 Aug, 2009 1 commit
  17. 25 Jul, 2009 1 commit
    • Jean Pihet's avatar
      OMAP3: Setup MUX settings for SDRC CKE signals · 9fb97412
      Jean Pihet authored
      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: default avatarJean Pihet <jpihet@mvista.com>
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      9fb97412
  18. 24 Mar, 2009 1 commit
    • Tony Lindgren's avatar
      ARM: OMAP3: Add more GPIO mux options · b9d766c7
      Tony Lindgren authored
      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: default avatarTony Lindgren <tony@atomide.com>
      b9d766c7
  19. 11 Dec, 2008 1 commit
  20. 09 Oct, 2008 1 commit
    • Syed Mohammed, Khasim's avatar
      ARM: OMAP3: Add minimal omap3430 support · cc26b3b0
      Syed Mohammed, Khasim authored
      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: default avatarSyed Mohammed, Khasim <khasim@ti.com>
      Signed-off-by: Karthik Dasu<karthik-dp@ti.com>
      Signed-off-by: default avatarAdrian Hunter <ext-adrian.hunter@nokia.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      
      
      
      cc26b3b0
  21. 06 Oct, 2008 1 commit
  22. 06 Sep, 2008 1 commit
  23. 07 Aug, 2008 1 commit
  24. 03 Jul, 2008 1 commit
  25. 14 Apr, 2008 5 commits