]> git.karo-electronics.de Git - linux-beck.git/commit
OMAP: hwmod: allow omap_hwmod_late_init() caller to skip module idle in _setup()
authorPaul Walmsley <paul@pwsan.com>
Mon, 26 Jul 2010 22:34:30 +0000 (16:34 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 26 Jul 2010 22:34:30 +0000 (16:34 -0600)
commit97d60162f64ef068b639d8a77ef3bc148baa53ad
tree33bdb47ec9f97e6404c864d59dbb362cae700a23
parent848240223c35fcc71c424ad51a8e8aef42d3879c
OMAP: hwmod: allow omap_hwmod_late_init() caller to skip module idle in _setup()

On kernels that don't use the omap_device_enable() calls to enable
devices, leave all on-chip devices enabled in hwmod _setup().
Otherwise, accesses to those devices are likely to fail, crashing the
system.  It's expected that kernels built without CONFIG_PM_RUNTIME
will be the primary use-case for this.  This functionality is
controlled by adding an extra parameter to omap_hwmod_late_init().

This patch is based on the patch "OMAP: hwmod: don't auto-disable
hwmod when !CONFIG_PM_RUNTIME" by Kevin Hilman
<khilman@deeprootsystems.com>.

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/plat-omap/include/plat/omap_hwmod.h