battery:Do not run temp chgpath in detach case
authora17671 <a17671@motorola.com>
Wed, 5 Dec 2018 09:29:32 +0000 (17:29 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:27 +0000 (17:30 +0800)
After received the detach notification
Temp chgpath was ran, that set the is_charGing flag
To the wrong value, remove this to unblock the
Otg control path

Change-Id: I1de599bd7adb4aa55c105c9dacdffa192753d556
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1278907
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/power/supply/s2mu00x_battery.c

index 348f44996fdb607d9b380a0fe758ffe99edc280a..a75563f93554fc600c27ca4e838334e04554cfa2 100644 (file)
@@ -1620,7 +1620,6 @@ end_ifconn_handle:
                battery->stepchg_state = STEP_NONE;
                battery->charging_limit_modes = CHARGING_LIMIT_OFF;
                set_max_allowed_current_ma(battery,battery->stepchg_current_ma);
-               smbchg_set_temp_chgpath(battery,battery->temp_state);
        } else {
                smbchg_stay_awake(battery);
                cancel_delayed_work(&battery->heartbeat_work);