Преглед на файлове

asoc: cdc: wcd939x: update sleep time during reset

updated sleep time to 80us from 20us after updating the
reset gpio pin from sleep to active state to give ample time
for HW to reset the pin state to active, to resolve the
component registration issue which is seen on stability
runs.

Change-Id: Icd13bf36d56906553352e595d07e478c23d1c13d
Signed-off-by: sarath varma ganapathiraju <[email protected]>
sarath varma ganapathiraju преди 1 година
родител
ревизия
a600b56704
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      asoc/codecs/wcd939x/wcd939x.c

+ 2 - 2
asoc/codecs/wcd939x/wcd939x.c

@@ -4709,7 +4709,7 @@ static int wcd939x_reset(struct device *dev)
 		return -EPROBE_DEFER;
 	}
 	/* 20us sleep required after pulling the reset gpio to LOW */
-	usleep_range(20, 30);
+	usleep_range(80, 85);
 
 	rc = msm_cdc_pinctrl_select_active_state(wcd939x->rst_np);
 	if (rc) {
@@ -4718,7 +4718,7 @@ static int wcd939x_reset(struct device *dev)
 		return -EPROBE_DEFER;
 	}
 	/* 20us sleep required after pulling the reset gpio to HIGH */
-	usleep_range(20, 30);
+	usleep_range(80, 85);
 
 	/* Set OVP threshold to 4.2V after reset */
 #if IS_ENABLED(CONFIG_QCOM_WCD_USBSS_I2C)