1. 28 5月, 2010 2 次提交
    • K
      mmc: OMAP HS-MMC: convert to dev_pm_ops · a791daa1
      Kevin Hilman 提交于
      Convert PM operations to use dev_pm_ops.  This will facilitate the runtime
      PM coversion which will add to dev_pm_ops hooks.
      
      Note that dev_pm_ops version of the suspend hook no longer takes a 'state'
      argument.  However, the MMC core function mmc_suspend_host() still takes a
      'state' argument, but it is unused, so a dummy state variable was created
      to pass to the MMC core.
      
      In the future, the MMC core should be converted to drop this state
      argument and the rest of the MMC drivers could be easily converted to
      dev_pm_ops as well.
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      Cc: Madhusudhan Chikkature <madhu.cr@ti.com>
      Cc: Adrian Hunter <adrian.hunter@nokia.com>
      Cc: Matt Fleming <matt@console-pimps.org>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Denis Karpov <ext-denis.2.karpov@nokia.com>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a791daa1
    • A
      omap_hsmmc: improve interrupt synchronisation · b417577d
      Adrian Hunter 提交于
      The following changes were needed:
      	- do not use in_interrupt() because it will not work
      	with threaded interrupts
      
      In addition, the following improvements were made:
      	- ensure DMA is unmapped only after the final DMA interrupt
      	- ensure a request is completed only after the final DMA interrupt
      	- disable controller interrupts when a request is not in progress
      	- remove the spin-lock protecting the start of a new request from
      	an unexpected interrupt because the locking was complicated and
      	a 'req_in_progress' flag suffices (since the spin-lock only defers
      	the unexpected interrupts anyway)
      	- instead use the spin-lock to protect the MMC interrupt handler
      	from the DMA interrupt handler
      	- remove the semaphore preventing DMA from being started while
      	the previous DMA is still in progress - the other changes make that
      	impossible, so it is now a BUG_ON condition
      	- ensure the controller interrupt status is clear before exiting
      	the interrrupt handler
      
      In general, these changes make the code safer but do not fix any specific
      bugs so backporting is not necessary.
      Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
      Tested-by: NVenkatraman S <svenkatr@ti.com>
      Acked-by: NMadhusudhan Chikkature <madhu.cr@ti.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b417577d
  2. 07 4月, 2010 1 次提交
  3. 16 2月, 2010 6 次提交
  4. 29 10月, 2009 1 次提交
  5. 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
  6. 23 9月, 2009 23 次提交
  7. 04 6月, 2009 1 次提交
  8. 29 5月, 2009 1 次提交
    • D
      ARM: OMAP3: mmc-twl4030 uses regulator framework · b583f26d
      David Brownell 提交于
      Decouple the HSMMC glue from the twl4030 as the only
      regulator provider, using the regulator framework instead.
      This makes the glue's "mmc-twl4030" name become a complete
      misnomer ... this code could probably all migrate into the
      HSMMC driver now.
      
      Tested on 3430SDP (SD and low-voltage MMC) and Beagle (SD),
      plus some other boards (including Overo) after they were
      converted to set up MMC regulators properly.
      
      Eventually all boards should just associate a regulator with
      each MMC controller they use.  In some cases (Overo MMC2 and
      Pandora MMC3, at least) that would be a fixed-voltage regulator
      with no real software control.  As a temporary hack (pending
      regulator-next updates to make the "fixed.c" regulator become
      usable) there's a new ocr_mask field for those boards.
      
      Patch updated with a fix for disabling vcc_aux by
      Adrian Hunter <adrian.hunter@nokia.com>
      
      Cc: Pierre Ossman <drzeus-list@drzeus.cx>
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b583f26d
  9. 09 4月, 2009 3 次提交
  10. 25 3月, 2009 1 次提交