projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c4ac49
)
[RAMEN9610-19595]ccic : fix init cc detach debounce for battery pack
author
Junhan Bae
<junhan84.bae@samsung.com>
Tue, 25 Jun 2019 03:46:32 +0000
(12:46 +0900)
committer
Kim Gunho
<gunho.kim@samsung.com>
Mon, 9 Sep 2019 11:08:08 +0000
(20:08 +0900)
Change-Id: I66cad46ed950527543e96ca49fd84ca6de3822ff
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
drivers/ccic/s2mu106-usbpd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ccic/s2mu106-usbpd.c
b/drivers/ccic/s2mu106-usbpd.c
index 1a05a931f23aced035c0c3731becf8261b69b65c..3c302bb53163010f7b350802953440a327674523 100644
(file)
--- 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;