summaryrefslogtreecommitdiffstats
path: root/drivers/power/charger-manager.c
diff options
context:
space:
mode:
authorAndrew Chew2013-06-06 23:12:43 +0200
committerAnton Vorontsov2013-06-09 19:07:34 +0200
commite24142178fc2f60824af4312d326edacdcd667a3 (patch)
tree9cfdfac74ecff5b45b94baba14fa3527a74789c0 /drivers/power/charger-manager.c
parentMAINTAINERS: Update email address for Anton Vorontsov (diff)
downloadkernel-qcow2-linux-e24142178fc2f60824af4312d326edacdcd667a3.tar.gz
kernel-qcow2-linux-e24142178fc2f60824af4312d326edacdcd667a3.tar.xz
kernel-qcow2-linux-e24142178fc2f60824af4312d326edacdcd667a3.zip
tps65090-charger: Fix AC detect
The VACG interrupt was not being enabled. Thus, interrupts were never generated when AC status changes. In addition, interrupts were never cleared after taking and processing the interrupt. Added the register offset for the INTR_MASK register, since this is needed to unmask the VACG interrupt. Enabled the VACG interrupt in tps65090_config_charger(). Cleared interrupts after processing, in tps65090_charger_isr(). Also removed unused variable "enable" in tps65090_enable_charging(), and fixed a typo in one of the dev_err() prints. Signed-off-by: Andrew Chew <achew@nvidia.com> Tested-by: Rhyland Klein <rklein@nvidia.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/charger-manager.c')
0 files changed, 0 insertions, 0 deletions