From 17f35a4585eb871bf5132c8c6e3e3e9b53642439 Mon Sep 17 00:00:00 2001 From: zhangyijie Date: Thu, 20 Dec 2018 15:12:22 +0800 Subject: [PATCH] (CR)[Kane]:[kernel]motor shorten probe time(1/1) motor update driver code for shorten driver probe time Change-Id: Id89d18da218e362ed1afbf1ac327208c7c85b25d --- drivers/misc/aw8695_haptic/aw8695.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/misc/aw8695_haptic/aw8695.c b/drivers/misc/aw8695_haptic/aw8695.c index c48b376d2acf..dd1766838b66 100755 --- a/drivers/misc/aw8695_haptic/aw8695.c +++ b/drivers/misc/aw8695_haptic/aw8695.c @@ -1453,7 +1453,9 @@ static int aw8695_haptic_f0_calibration(struct aw8695 *aw8695) /* restore default work mode */ aw8695_haptic_play_mode(aw8695, AW8695_HAPTIC_STANDBY_MODE); - aw8695_haptic_play_mode(aw8695, AW8695_HAPTIC_RAM_MODE); + aw8695->play_mode = AW8695_HAPTIC_RAM_MODE; + aw8695_i2c_write_bits(aw8695, AW8695_REG_SYSCTRL, + AW8695_BIT_SYSCTRL_PLAY_MODE_MASK, AW8695_BIT_SYSCTRL_PLAY_MODE_RAM); aw8695_haptic_stop(aw8695); return ret; -- 2.20.1