battery:Do not run temp chgpath in detach case
authora17671 <a17671@motorola.com>
Wed, 5 Dec 2018 09:29:32 +0000 (17:29 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:51 +0000 (20:23 +0300)
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);