mfd: max77663: Handle case for PWR_OFF and SFT_RST setting simultaneously
authorJinyoung Park <jinyoungp@nvidia.com>
Tue, 6 Mar 2012 07:56:50 +0000 (16:56 +0900)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Tue, 13 Mar 2012 08:56:32 +0000 (01:56 -0700)
commite7013a90a36e3f609e6e99885e8bb700cc0eb428
treebaf88752514588e615d5452da489caacab2ce0a4
parentda7d4c781b69849ceb6156a8205b726705fc702f
mfd: max77663: Handle case for PWR_OFF and SFT_RST setting simultaneously

MAX77663 PMU doesn't allow PWR_OFF and SFT_RST setting in ONOFF_CFG1
at the same time. So if it try to set PWR_OFF and SFT_RST to ONOFF_CFG1
simultaneously, handle only SFT_RST and ignore PWR_OFF.

Bug 949650

Change-Id: I90c602e22c813b05fcd9047153cea3ed2cbd596f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/87981
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Johnny Qiu <joqiu@nvidia.com>
drivers/mfd/max77663-core.c