]> git.kernelconcepts.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 03:08:25 +0000 (20:08 -0700)
commit05610af3c7228f509be69a96ec425b1836360615
treee599bccd4cecf67f87eea5f299d5eeb2519ebc45
parent55b8e63ea5ce5ffa45205a9e15cdd740aa8a69b4
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