]> Pileus Git - ~andy/linux/commit
ARM: OMAP: omap_device: idle devices with no driver bound
authorKevin Hilman <khilman@ti.com>
Tue, 10 Jul 2012 22:06:11 +0000 (15:06 -0700)
committerKevin Hilman <khilman@ti.com>
Wed, 12 Sep 2012 17:52:03 +0000 (10:52 -0700)
commit9634c8dd6a729406e89aed4e29470e3ffb3cd060
tree9ba7a4a13fdec2e17c5cce0b08b0dbf65dfdfde9
parent72bb6f9b51c82c820ddef892455a85b115460904
ARM: OMAP: omap_device: idle devices with no driver bound

Under some circumstances, drivers may leave an omap_device enabled due
to driver programming errors, or due to a failure in the drivers
probe method.

Using the recently added omap_device driver_status field, we can
detect conditions where an omap_device is enabled but has no driver
bound and then ensure that the device is properly idled until it can
be probed again.

The goal of this feature is not only to detect and warn on these error
conditions, but also to ensure that devices are properly put in
low-power states so they do not prevent SoC-wide low-power states.

Reviewed-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/plat-omap/omap_device.c