From 30ede4ac97f931ea0e4290d59b1f0e9e2c7273e0 Mon Sep 17 00:00:00 2001 From: dengwei1 Date: Tue, 6 Aug 2019 09:57:08 +0800 Subject: [PATCH] Troika : vib fix stop delay time discuss with vendor Troika vib fix stop delay time Change-Id: I6ff5a56adf7990b90e0edabb97907a8cef25d812 Signed-off-by: dengwei1 Reviewed-on: https://gerrit.mot.com/1397445 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/misc/aw8695_haptic/aw8695.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/aw8695_haptic/aw8695.c b/drivers/misc/aw8695_haptic/aw8695.c index e91bd1b55522..920de2f3c820 100755 --- a/drivers/misc/aw8695_haptic/aw8695.c +++ b/drivers/misc/aw8695_haptic/aw8695.c @@ -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, ®_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); } -- 2.20.1