pca9468_charger: increase the status check delay for WLC

Increase the delay for status check to ensure the WLC
voltage/current stable.

Bug: 237323599
Signed-off-by: Wasb Liu <[email protected]>
Change-Id: Ia481e61baef850480b5b58d431ab2010f1166f82
diff --git a/pca9468_charger.c b/pca9468_charger.c
index c7469cd..c8632c9 100644
--- a/pca9468_charger.c
+++ b/pca9468_charger.c
@@ -38,8 +38,9 @@
 #define PCA9468_CCMODE_CHECK1_T	5000	/* 10000ms -> 500ms */
 #define PCA9468_CCMODE_CHECK2_T	5000	/* 5000ms */
 #define PCA9468_CVMODE_CHECK_T 	10000	/* 10000ms */
-#define PCA4968_ENABLE_DELAY_T	150	/* 150ms */
+#define PCA9468_ENABLE_DELAY_T	150	/* 150ms */
 #define PCA9468_CVMODE_CHECK2_T	1000	/* 1000ms */
+#define PCA9468_ENABLE_WLC_DELAY_T	300	/* 300ms */
 
 /* Battery Threshold */
 #define PCA9468_DC_VBAT_MIN		3400000 /* uV */
@@ -3414,9 +3415,12 @@
 	pca9468->prev_iin = 0;
 	pca9468->prev_inc = INC_NONE;
 
-	/* Go to CHECK_ACTIVE state after 150ms*/
+	/* Go to CHECK_ACTIVE state after 150ms, 300ms for wireless */
 	pca9468->timer_id = TIMER_CHECK_ACTIVE;
-	pca9468->timer_period = PCA4968_ENABLE_DELAY_T;
+	if (pca9468->ta_type == TA_TYPE_WIRELESS)
+		pca9468->timer_period = PCA9468_ENABLE_WLC_DELAY_T;
+	else
+		pca9468->timer_period = PCA9468_ENABLE_DELAY_T;
 	mod_delayed_work(pca9468->dc_wq, &pca9468->timer_work,
 			   msecs_to_jiffies(pca9468->timer_period));
 error: