]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: adp5520: Restore mode bits on resume
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Feb 2013 10:51:22 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 02:57:28 +0000 (19:57 -0700)
commiteadb89490b7b35a5fbb169dfc59e7a3d07b4c492
tree25216ead49e0a7a23c9850fc9a3cd4bea87e35a4
parent92e5cc743134cec1532b43fa2b97340effd956a8
mfd: adp5520: Restore mode bits on resume

commit c6cc25fda58da8685ecef3f179adc7b99c8253b2 upstream.

The adp5520 unfortunately also clears the BL_EN bit when the nSTNDBY bit is
cleared. So we need to make sure to restore it during resume if it was set
before suspend.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/adp5520.c