kernel: disable hq factory restriction charGing func
authorxuwei9 <xuwei9@lenovo.com>
Mon, 19 Nov 2018 06:35:46 +0000 (14:35 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:22 +0000 (17:30 +0800)
Disable hq restriction
charGing function

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

drivers/power/supply/s2mu00x_battery.c

index 416088f13327e0c98a0187918ba2b43c9327f034..348f44996fdb607d9b380a0fe758ffe99edc280a 100644 (file)
@@ -4136,7 +4136,7 @@ void factory_usb_shutdown(struct s2mu00x_battery_info *chip)
                chip->factory_cable = false;
        }
 }
-
+#if 0
 static void soc_control_worker(struct work_struct *work)
 {
        struct s2mu00x_battery_info *battery =
@@ -4152,7 +4152,7 @@ static void soc_control_worker(struct work_struct *work)
 
        queue_delayed_work(battery->monitor_wqueue, &battery->soc_control, 10*HZ);
 }
-
+#endif
 static int s2mu00x_battery_probe(struct platform_device *pdev)
 {
        struct s2mu00x_battery_info *battery;
@@ -4356,8 +4356,8 @@ static int s2mu00x_battery_probe(struct platform_device *pdev)
        if ((is_charging_mode == S2MU00X_POWEROFF_CHG_MODE) ||
                (is_charging_mode == S2MU00X_NOR_MODE)) {
                pr_info("%s: Poweroff charger mode, enable charging\n", __func__);
-               INIT_DELAYED_WORK(&battery->soc_control, soc_control_worker);
-               queue_delayed_work(battery->monitor_wqueue, &battery->soc_control, 5*HZ);
+       //      INIT_DELAYED_WORK(&battery->soc_control, soc_control_worker);
+       //      queue_delayed_work(battery->monitor_wqueue, &battery->soc_control, 5*HZ);
        } else if (is_charging_mode == S2MU00X_FAC_MODE) {
                pr_info("%s: Factory boot mode, stop charging\n", __func__);
                set_battery_status(battery, POWER_SUPPLY_STATUS_DISCHARGING);