From 584cd06c9cd7f3caeba348dc6f62b67738544ca4 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Mon, 13 Mar 2017 08:55:34 -0700 Subject: [PATCH] bd9995x: Do not set IADP monitoring enable bit IADP monitoring bit was set to the default value for the devices with an RO image which clears the bit (and causes the issue). This patch removes the code so that we do not touch the IADP monitoring bit since transitioning from 0->1 may cause other issues. BUG=b:35647661 BRANCH=reef TEST=none Change-Id: I4413e0bd2de3f4e3912cbe6e73b8cad641ee9245 Signed-off-by: Daisuke Nojiri Reviewed-on: https://chromium-review.googlesource.com/453400 Reviewed-by: Shawn N Reviewed-on: https://chromium-review.googlesource.com/453798 --- driver/charger/bd9995x.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/driver/charger/bd9995x.c b/driver/charger/bd9995x.c index df69f348e8..eae0a8d9f9 100644 --- a/driver/charger/bd9995x.c +++ b/driver/charger/bd9995x.c @@ -796,14 +796,6 @@ static void bd9995x_init(void) ch_raw_write16(BD9995X_CMD_CHGOP_SET2, reg, BD9995X_EXTENDED_COMMAND); - /* Disable IADP pin current limit */ - if (ch_raw_read16(BD9995X_CMD_VM_CTRL_SET, ®, - BD9995X_EXTENDED_COMMAND)) - return; - reg &= ~BD9995X_CMD_VM_CTRL_SET_EXTIADPEN; - ch_raw_write16(BD9995X_CMD_VM_CTRL_SET, reg, - BD9995X_EXTENDED_COMMAND); - /* Define battery charging profile */ bd9995x_battery_charging_profile_settings();