[PATCH 3/4] Kill automatic charging restart to retain manual control.
Balaji Rao
balajirrao at openmoko.org
Tue Dec 23 15:58:00 CET 2008
Signed-off-by: Balaji Rao <balajirrao at openmoko.org>
---
drivers/power/pcf50633-charger.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c
index b06a2ed..866972b 100644
--- a/drivers/power/pcf50633-charger.c
+++ b/drivers/power/pcf50633-charger.c
@@ -364,6 +364,12 @@ int __init pcf50633_mbc_probe(struct platform_device *pdev)
if (ret)
dev_err(pcf->dev, "failed to register ac\n");
+ /* Disable automatic charging restart. Manually setting RESUME
+ * won't have effect otherwise
+ */
+ pcf50633_reg_clear_bits(pcf, PCF50633_REG_MBCC1,
+ PCF50633_MBCC1_AUTORES);
+
return sysfs_create_group(&pdev->dev.kobj, &mbc_attr_group);
}
--
1.6.0.3
More information about the openmoko-kernel
mailing list