kernel_optimize_test/arch/arm/plat-omap
Kevin Hilman 72bb6f9b51 ARM: OMAP: omap_device: don't attempt late suspend if no driver bound
Currently, the omap_device PM domain layer uses the late suspend and
early resume callbacks to ensure devices are in their low power
states.

However, this is attempted even in cases where a driver probe has
failed.  If a driver's ->probe() method fails, the driver is likely in
a state where it is not expecting its runtime PM callbacks to be
called, yet currently the omap_device PM domain code attempts to call
the drivers callbacks.

To fix, use the omap_device driver_status field to check whether a
driver is bound to the omap_device before attempting to trigger driver
callbacks.

Reviewed-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
2012-09-12 10:51:56 -07:00
..
include/plat ARM: OMAP: omap_device: keep track of driver bound status 2012-09-12 10:51:49 -07:00
clock.c ARM: OMAP: PM: Lock clocks list while generating summary 2012-06-17 11:57:50 -06:00
common.c ARM: OMAP2+: Move stubbed secure_sram_reserve function to a common.c and call it __weak 2012-07-09 19:14:38 +05:30
counter_32k.c ARM: OMAP: counter-32k: Select the CR register offset using the IP scheme 2012-07-09 19:14:39 +05:30
debug-devices.c ARM: gpio: convert includes of mach/gpio.h and asm/gpio.h to linux/gpio.h 2011-08-08 14:27:41 +01:00
debug-leds.c Disintegrate asm/system.h for ARM 2012-03-28 18:30:01 +01:00
devices.c ARM: OMAP: Move omap_mmc_add() to mach-omap1 2012-05-09 16:35:12 -07:00
dma.c ARM: OMAP: dma: Clear status registers on enable/disable irq 2012-06-03 22:50:42 -07:00
dmtimer.c ARM: OMAP: dmtimer: use devm_ API and do some cleanup in probe() 2012-07-05 02:15:55 -07:00
fb.c ARM: OMAP2+: Fix compile error when FB_OMAP2 is not set 2012-03-09 09:53:21 +02:00
i2c.c ARM: OMAP: I2C: Fix omap_register_i2c_bus() return value on success 2011-11-04 17:41:07 -07:00
Kconfig arm-soc: power management changes 2012-07-23 17:43:53 -07:00
mailbox.c ARM: OMAP: enable mailbox irq per instance 2012-05-13 16:09:39 +03:00
Makefile ARM: OMAP2+: All OMAP2PLUS uses omap-device.o target so add one entry 2012-07-05 08:05:14 -07:00
mux.c Disintegrate asm/system.h for ARM 2012-03-28 18:30:01 +01:00
omap_device.c ARM: OMAP: omap_device: don't attempt late suspend if no driver bound 2012-09-12 10:51:56 -07:00
omap-pm-noop.c ARM: OMAP: omap_device: remove omap_device_parent 2012-03-05 15:38:02 -08:00
sram.c ARM: OMAP5: Add minimal support for OMAP5430 SOC 2012-07-09 19:14:39 +05:30
sram.h