From 03a2b3afc334537ddffd85cc98663b28eb3d76cf Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Wed, 13 Mar 2019 18:14:06 +0800 Subject: [PATCH] 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 --- drivers/power/supply/s2mu00x_battery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1