]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: arizona: Add better support for system suspend
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 11 May 2015 12:58:09 +0000 (13:58 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Jun 2015 11:25:14 +0000 (12:25 +0100)
commit0c803fe68268923ab1e319b045ac941d356186ba
tree1bc4bd1ac0ce77c8169fbeea8cbfbacd7454da17
parent2081cfa22f5e71191c682574ebfcb30c34220ca8
mfd: arizona: Add better support for system suspend

Allow the chip to completely power off if we enter runtime suspend and
there is no jack detection active. This is helpful for systems where
system suspend might remove the supplies to the CODEC, without informing
us. Note the powering off is done in runtime suspend rather than system
suspend, because we need to hold reset until the first time DCVDD is
powered anyway (which would be in runtime resume), and we might as well
save the extra power.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c
include/linux/mfd/arizona/core.h