mfd: ab8500-sysctrl: Update correct turn on status
authorRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Wed, 30 May 2012 11:02:37 +0000 (16:32 +0530)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:26:47 +0000 (12:26 +0800)
commitf04a9d8adf766c480353c0f2427e641251c9b059
tree360a450f4d66089fc119bfb4a3e0f482a88973f4
parent6dbe51c251a327e012439c4772097a13df43c5b8
mfd: ab8500-sysctrl: Update correct turn on status

In L9540, turn_on_status register is not updated correctly if
the device is rebooted with AC/USB charger connected. Due to
this, the device boots android instead of entering into charge
only mode. Read the AC/USB status register to detect the charger
presence and update the turn on status manually.

Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Signed-off-by: Per Forlin <per.forlin@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Rupesh KUMAR <rupesh.kumar@stericsson.com>
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Tested-by: Rupesh KUMAR <rupesh.kumar@stericsson.com>
Tested-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c
drivers/mfd/ab8500-sysctrl.c
include/linux/mfd/abx500/ab8500.h