From 4fa9cbe744fe5e89c5de2c2a1da1b107ce2694a3 Mon Sep 17 00:00:00 2001 From: litao2 Date: Wed, 16 Jan 2019 15:45:41 +0800 Subject: [PATCH] Sensor: (1/1) fix issue - CapSensor PHx diff value is incorrect first time After calibration complete, user must wait 1.5 secondsat least for first variational PHx diff value. Otherwise PHx diff is 0. Bug:EKKANE-295 Workaround:no Change-Id: I88190d26db6f9559c5dcf49c8b2fe0515e8ef4ee Signed-off-by: litao2 --- drivers/input/misc/sx933x_sar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/misc/sx933x_sar.c b/drivers/input/misc/sx933x_sar.c index 8daec35b34f4..f87adffd6edd 100755 --- a/drivers/input/misc/sx933x_sar.c +++ b/drivers/input/misc/sx933x_sar.c @@ -530,6 +530,9 @@ static ssize_t sx933x_diff_data_show(struct device *dev, struct device_attribute s32 diff; u32 uData; psx93XX_t this = dev_get_drvdata(dev); + + msleep(1500); + if(this) { for(csx =0; csx<5; csx++) { sx933x_i2c_read_16bit(this, SX933X_DIFFPH0_REG + csx*4, &uData); -- 2.20.1