Fingerprint transfer data is interrupted by system suspend, so
CA can't get response from TA. Then system server watchdog happen.
To avoid the system sleep, add wake lock when transfer data from
CA to TA.
Change-Id: I627c04d63b324b1c6e7283e455efe2e78cf67319
Signed-off-by: chenl18 <chenlei18@mt.com>
Reviewed-on: https://gerrit.mot.com/
1332303
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
\r
#define FP_SPICLK_ENABLE 0xaa\r
#define FP_SPICLK_DISABLE 0xab\r
+#define FP_ENABLE_WAKELOCK 0xb1\r
+#define FP_DISABLE_WAKELOCK 0xb2\r
\r
#define EDGE_TRIGGER_FALLING 0x0\r
#define EDGE_TRIGGER_RAISING 0x1\r
DEBUG_PRINT("etspi:fp_ioctl spi_clk_enable = %x\n", data.clk_enable);\r
spi_clk_enable(etspi, data.clk_enable);\r
goto done;\r
+ case FP_ENABLE_WAKELOCK:\r
+ wake_lock_timeout(&et320_wake_lock, msecs_to_jiffies(1500));\r
+ goto done;\r
+ case FP_DISABLE_WAKELOCK:\r
+ wake_unlock(&et320_wake_lock);\r
+ goto done;\r
default:\r
retval = -ENOTTY;\r
break;\r