Troika : vib fix stop delay time
authordengwei1 <dengwei1@motorola.com>
Tue, 6 Aug 2019 01:57:08 +0000 (09:57 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:09 +0000 (17:32 +0800)
discuss with vendor
Troika  vib fix stop delay time

Change-Id: I6ff5a56adf7990b90e0edabb97907a8cef25d812
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1397445
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/misc/aw8695_haptic/aw8695.c

index e91bd1b5552265d0c44bf8033ebe96732fb05c5a..920de2f3c820a8e45b1f8b333c8dbdaa95945fae 100755 (executable)
@@ -583,14 +583,14 @@ static int aw8695_haptic_play_go(struct aw8695 *aw8695, bool flag)
 static int aw8695_haptic_stop_delay(struct aw8695 *aw8695)
 {
     unsigned char reg_val = 0;
-    unsigned int cnt = 100;
+    unsigned int cnt = 10;
 
     while(cnt--) {
         aw8695_i2c_read(aw8695, AW8695_REG_GLB_STATE, &reg_val);
         if((reg_val&0x0f) == 0x00) {
             return 0;
         }
-        msleep(2);
+        msleep(10);
         pr_debug("%s wait for standby, reg glb_state=0x%02x\n",
             __func__, reg_val);
     }