From: dengwei1 Date: Tue, 6 Aug 2019 01:57:08 +0000 (+0800) Subject: Troika : vib fix stop delay time X-Git-Tag: MMI-QSAS30.62-33-3~118 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d84e103d2a8c2e5a146e877696ed9172687c31b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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); }