From: xuwei9 Date: Wed, 13 Mar 2019 10:14:06 +0000 (+0800) Subject: kernel:turbo charger event of type-c X-Git-Tag: MMI-RSA31.Q1-48-36-11~172 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4357064db12d49410f89a2159c18f6b553631cc4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kernel:turbo charger event of type-c turbo charger type-c event Change-Id: I302816f48b55abe87a7fb69a1dfb9041ea9957c9 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1320067 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/power/supply/s2mu00x_battery.c b/drivers/power/supply/s2mu00x_battery.c index 444de6ce797e..bf71b7d13169 100644 --- a/drivers/power/supply/s2mu00x_battery.c +++ b/drivers/power/supply/s2mu00x_battery.c @@ -871,7 +871,8 @@ static void get_prop_charge_rate(struct s2mu00x_battery_info *battery) if(battery->cable_type == POWER_SUPPLY_TYPE_HV_MAINS || battery->cable_type == POWER_SUPPLY_TYPE_USB_PD || - battery->cable_type == POWER_SUPPLY_TYPE_PREPARE_TA ) + battery->cable_type == POWER_SUPPLY_TYPE_PREPARE_TA || + ((battery->rp_attach)&&(battery->rp_input_current == RP_CURRENT3)) ) battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_TURBO; else battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_NORMAL;