mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
increase tcpc timeout to wait detect charge type
factory test cannot connect network port increase polling times Change-Id: I6878a40336249aae296c3b0729e70a421ff828cf Signed-off-by: longc104 <longc104@motorola.com> Reviewed-on: https://gerrit.mot.com/2250326 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Shen <shenying@motorola.com> Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
64608c0eb6
commit
56dbe16abe
3 changed files with 11 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ ifeq ($(USB_POWER_DELIVERY),true)
|
|||
KERNEL_CFLAGS += CONFIG_USB_POWER_DELIVERY=y
|
||||
endif
|
||||
|
||||
ifeq ($(TCPC_DEVON_POLLING_TIME),true)
|
||||
KERNEL_CFLAGS += CONFIG_TCPC_DEVON_POLLING_TIME=y
|
||||
endif
|
||||
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,10 @@ ifneq ($(filter m y,$(CONFIG_TCPC_SGM7220)),)
|
|||
obj-m += tcpc_sgm7220.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TCPC_DEVON_POLLING_TIME)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_TCPC_DEVON_POLLING_TIME
|
||||
endif
|
||||
|
||||
tcpc_class-objs += tcpci_core.o tcpci_typec.o tcpci_timer.o \
|
||||
tcpm.o tcpci.o pd_dbg_info.o tcpci_alert.o rt-regmap.o tcpci_dual_role.o
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,11 @@
|
|||
#define PROBE_CNT_MAX 3
|
||||
/* 10ms * 100 = 1000ms = 1s */
|
||||
#define USB_TYPE_POLLING_INTERVAL 10
|
||||
#ifdef CONFIG_TCPC_DEVON_POLLING_TIME
|
||||
#define USB_TYPE_POLLING_CNT_MAX 130
|
||||
#else
|
||||
#define USB_TYPE_POLLING_CNT_MAX 100
|
||||
#endif
|
||||
|
||||
enum dr {
|
||||
DR_IDLE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue