From: Junhan Bae Date: Tue, 25 Jun 2019 03:46:32 +0000 (+0900) Subject: [RAMEN9610-19595]ccic : fix init cc detach debounce for battery pack X-Git-Tag: MMI-QSAS30.62-33-3~723 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8793b40afc48288631e5dc7c47d291f45ab3d682;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [RAMEN9610-19595]ccic : fix init cc detach debounce for battery pack Change-Id: I66cad46ed950527543e96ca49fd84ca6de3822ff Signed-off-by: Junhan Bae --- diff --git a/drivers/ccic/s2mu106-usbpd.c b/drivers/ccic/s2mu106-usbpd.c index 1a05a931f23a..3c302bb53163 100644 --- a/drivers/ccic/s2mu106-usbpd.c +++ b/drivers/ccic/s2mu106-usbpd.c @@ -2830,7 +2830,10 @@ static void s2mu106_usbpd_init_configure(struct s2mu106_usbpd_data *_data) _data->detach_valid = false; s2mu106_usbpd_set_cc_control(_data, USBPD_CC_OFF); _data->lpm_mode = true; - msleep(150); /* for abnormal PD TA */ + if (_data->pm_chgin > 4800 && _data->pm_chgin_i > 1000) + msleep(500); /* for abnormal PD TA */ + else + msleep(150); _data->is_factory_mode = false; s2mu106_set_normal_mode(_data); _data->lpm_mode = false;