summaryrefslogtreecommitdiff
path: root/syna_tcm2.c
AgeCommit message (Collapse)Author
2023-03-29synaptics: request interrupt at the later stage of probe functionandroid-u-qpr2-beta-1_r0.6android-u-qpr2-beta-1_r0.5android-u-qpr2-beta-1_r0.4android-u-qpr2-beta-1_r0.3android-u-qpr2-beta-1_r0.2android-u-qpr2-beta-1_r0.1android-u-qpr1-beta-2_r0.7android-u-qpr1-beta-2_r0.5android-u-qpr1-beta-2_r0.4android-u-qpr1-beta-2_r0.3android-u-qpr1-beta-2_r0.2android-u-qpr1-beta-2_r0.1android-u-qpr1-beta-2.2_r0.6android-u-qpr1-beta-2.2_r0.5android-u-qpr1-beta-2.2_r0.4android-u-qpr1-beta-2.2_r0.3android-u-qpr1-beta-2.2_r0.2android-u-qpr1-beta-2.2_r0.1android-u-qpr1-beta-2.1_r0.7android-u-qpr1-beta-2.1_r0.5android-u-qpr1-beta-2.1_r0.4android-u-qpr1-beta-2.1_r0.3android-u-qpr1-beta-2.1_r0.2android-u-qpr1-beta-2.1_r0.1android-u-qpr1-beta-1_r0.7android-u-qpr1-beta-1_r0.5android-u-qpr1-beta-1_r0.4android-u-qpr1-beta-1_r0.3android-u-qpr1-beta-1_r0.2android-u-qpr1-beta-1_r0.1android-u-beta-5.3_r0.7android-u-beta-5.3_r0.5android-u-beta-5.3_r0.4android-u-beta-5.3_r0.2android-u-beta-5.3_r0.1android-u-beta-4_r0.7android-u-beta-4_r0.5android-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-u-beta-4_r0.1android-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_r0.2android-u-beta-2.1_r0.4android-u-beta-2.1_r0.3android-u-beta-2.1_r0.2android-14.0.0_r0.7android-14.0.0_r0.6android-14.0.0_r0.5android-14.0.0_r0.44android-14.0.0_r0.43android-14.0.0_r0.42android-14.0.0_r0.41android-14.0.0_r0.40android-14.0.0_r0.4android-14.0.0_r0.39android-14.0.0_r0.37android-14.0.0_r0.36android-14.0.0_r0.35android-14.0.0_r0.34android-14.0.0_r0.33android-14.0.0_r0.31android-14.0.0_r0.3android-14.0.0_r0.25android-14.0.0_r0.23android-14.0.0_r0.22android-14.0.0_r0.21android-14.0.0_r0.2android-14.0.0_r0.19android-14.0.0_r0.17android-14.0.0_r0.16android-14.0.0_r0.15android-14.0.0_r0.14android-14.0.0_r0.13android-14.0.0_r0.11android-gs-tangorpro-android14-releaseandroid-gs-tangorpro-5.10-u-qpr1-beta2android-gs-tangorpro-5.10-u-beta5.3android-gs-tangorpro-5.10-u-beta4android-gs-tangorpro-5.10-android14-qpr1-betaandroid-gs-tangorpro-5.10-android14-qpr1android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-gs-raviole-5.10-u-qpr1-beta2android-gs-raviole-5.10-u-beta5.3android-gs-raviole-5.10-u-beta4android-gs-raviole-5.10-u-beta3android-gs-raviole-5.10-u-beta2android-gs-raviole-5.10-android14-qpr1-betaandroid-gs-raviole-5.10-android14-qpr1android-gs-raviole-5.10-android14android-gs-pantah-android14-releaseandroid-gs-pantah-5.10-u-qpr1-beta2android-gs-pantah-5.10-u-beta5.3android-gs-pantah-5.10-u-beta4android-gs-pantah-5.10-u-beta2android-gs-pantah-5.10-android14-qpr1-betaandroid-gs-pantah-5.10-android14-qpr1android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-u-qpr1-beta2android-gs-lynx-5.10-u-beta4android-gs-lynx-5.10-android14-qpr1-betaandroid-gs-lynx-5.10-android14-qpr1android-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-qpr1-beta2android-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-u-beta4android-gs-felix-5.10-android14-qpr1-betaandroid-gs-felix-5.10-android14-qpr1android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-gs-bluejay-5.10-u-qpr1-beta2android-gs-bluejay-5.10-u-beta5.3android-gs-bluejay-5.10-u-beta4android-gs-bluejay-5.10-u-beta3android-gs-bluejay-5.10-u-beta2android-gs-bluejay-5.10-android14-qpr1-betaandroid-gs-bluejay-5.10-android14-qpr1android-gs-bluejay-5.10-android14Yen-Chao Chen
Make sure everything has been setup before request interrupt. Bug: 271332558 Test: touch works fine. Change-Id: I9ad3c4dc9f87154472f37e5aee6223ce7f841e34 Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-03-29synaptics: check heatmap_buff before usingYen-Chao Chen
Check heatmap_buff before using to avoid null pointer issue. Bug: 271332558 Test: touch works fine. Change-Id: Ide72bcaad7f2ecf5e38c5958cb93787726213eba Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2022-12-26synaptics: Refine module remove function orderandroid-t-qpr3-beta-3_r0.5android-t-qpr3-beta-3_r0.4android-t-qpr3-beta-3_r0.3android-t-qpr3-beta-3.1_r0.5android-t-qpr3-beta-3.1_r0.4android-t-qpr3-beta-3.1_r0.3android-t-qpr3-beta-2_r0.5android-t-qpr3-beta-2_r0.4android-t-qpr3-beta-2_r0.3android-t-qpr3-beta-1_r0.5android-t-qpr3-beta-1_r0.4android-t-qpr3-beta-1_r0.3android-t-qpr3-beta-1_r0.1android-13.0.0_r0.93android-13.0.0_r0.92android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.127android-13.0.0_r0.126android-13.0.0_r0.125android-13.0.0_r0.124android-13.0.0_r0.123android-13.0.0_r0.121android-13.0.0_r0.117android-13.0.0_r0.116android-13.0.0_r0.115android-13.0.0_r0.114android-13.0.0_r0.113android-13.0.0_r0.112android-13.0.0_r0.107android-13.0.0_r0.106android-13.0.0_r0.105android-13.0.0_r0.104android-13.0.0_r0.103android-13.0.0_r0.100android-gs-tangorpro-5.10-android13-qpr3android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-raviole-5.10-android13-qpr3-beta1android-gs-raviole-5.10-android13-qpr3android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-t-qpr3-beta-2android-gs-pantah-5.10-android13-qpr3-beta1android-gs-pantah-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr3android-gs-felix-5.10-android13-qpr3-candroid-gs-felix-5.10-android13-qpr3android-gs-felix-5.10-android13-d3android-gs-bluejay-5.10-t-qpr3-beta-3android-gs-bluejay-5.10-t-qpr3-beta-2android-gs-bluejay-5.10-android13-qpr3-beta1android-gs-bluejay-5.10-android13-qpr3davidycchen
Free IRQ before touch_offload, cpu_latency_qos and raw_data_buffer because those functions are used in interrupt handler. Bug: 263591433 Test: reboot the device. Change-Id: Ibac7ee297f5911019a4cb8771e0e8fa9ae0ea2c7 Signed-off-by: davidycchen <davidycchen@google.com>
2022-10-26synaptics: Clean up pending completion if touch is not suspended yetandroid-t-qpr2-beta-3_r0.5android-t-qpr2-beta-3_r0.4android-t-qpr2-beta-3_r0.3android-t-qpr2-beta-3.2_r0.6android-t-qpr2-beta-3.2_r0.5android-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.4android-t-qpr2-beta-2_r0.3android-t-qpr2-beta-1_r0.6android-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-13.0.0_r0.91android-13.0.0_r0.77android-13.0.0_r0.75android-13.0.0_r0.74android-13.0.0_r0.73android-13.0.0_r0.70android-13.0.0_r0.69android-13.0.0_r0.68android-13.0.0_r0.64android-gs-tangorpro-5.10-android13-d2android-gs-raviole-5.10-t-qpr2-beta-1android-gs-raviole-5.10-android13-qpr2-betaandroid-gs-raviole-5.10-android13-qpr2android-gs-pantah-5.10-t-qpr2-beta-3.2android-gs-pantah-5.10-t-qpr2-beta-1android-gs-pantah-5.10-android13-qpr2-betaandroid-gs-pantah-5.10-android13-qpr2android-gs-lynx-5.10-android13-qpr2-bandroid-gs-bluejay-5.10-t-qpr2-beta-3android-gs-bluejay-5.10-t-qpr2-beta-1android-gs-bluejay-5.10-android13-qpr2-betaandroid-gs-bluejay-5.10-android13-qpr2davidycchen
Let the interrupt handler clean up any pending completion if syna_dev_suspend() is not run yet. Bug: 252698616 Test: Add a debug patch that sends a command when the device is going to sleep but syna_dev_suspend() is not run yet and confirm the cmd_completion is cleaned up. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: If242c6aee7978194de25661138ade9a8a3842e06
2022-08-24synaptics: dump latest touch events when the touch suspendsandroid-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1davidycchen
Example: syna_debug_dump: dump: #8: 2.400(0.678) D(1, -4). syna_debug_dump: dump: #7: 2.400(0.686) D(-53, 47). syna_debug_dump: dump: #5: 2.409(0.698) D(0, 12). syna_debug_dump: dump: #6: 2.409(0.698) D(-29, 11). syna_debug_dump: reset 0, longest 0.994. syna_debug_dump: dump: cnt 11, wet 0, palm 0. Doc: go/no_touch_debug_1p Bug: 242128411 Test: adb bugreport Test: Turn off display. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Id2842f786ca8bbeb22b168946cbda8594c7654fe
2022-08-24synaptics: dump touch check information when the touch suspendsdavidycchen
Example: syna_hc_dump: dump-int: #15217(2.63): S#67(+) C#7488(0x0). syna_hc_dump: dump-int: #15218(2.60): S#67 C#7489(0x0)(+). syna_hc_dump: dump-int: #15219(2.60): S#67 C#7489(0x0). syna_hc_dump: dump-int: #15220(2.59): S#68(+) C#7489(0x0). Doc: go/no_touch_debug_1p bug: 242128411 Test: adb bugreport Test: Turn off display. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Icc6b6f3fcc7373693b29e1ea5ccdeb577ba896c9
2022-08-18synaptics: correct the error handling in suspend functiondavidycchen
Remove the early return in the suspend function to make sure the reset process in resume function can help recover the touch issue. Use the same event workqueue for reset callback to make sure the callback won't run after device suspend. Bug: 240887667 Test: Add the error code in suspend function and make sure the touch can be recover by the error handling. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I5ec126964ba445ebc5a406a68c945e99ab4f27b8
2022-08-16synaptics: clear touch_offload coords while release all touchesdavidycchen
When the screen is off, touch driver releases all the input touch events. This makes the status different from touch_offload so we need to synchronize the status. Bug: 238536533 Test: Touch events are cleared while suspending. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I65e22a9ddc5d4366be5992afd082af390ff65f43
2022-08-08synaptics: set the firmware grip/palm mode with a workqueuedavidycchen
When there is a command triggered from a workqueue is still pending, a new command is sent from the interrupt handler causes the touch IC returns a pending error code. Move the setting commands in the interrupt handler to workqueue to avoid the above issue. Bug: 239181810 Test: Keep toggling the settings and scrolling the screen. watch -n2 "adb shell stop twoshay; sleep 1; adb shell start twoshay" Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Idb5a39147da56c2f3942280f6567ae696e3f1449
2022-08-02synaptics: Enable cancel_reporting capability.Mark Chang
Bug: 241032876 Test: Touch working as expected. Test: twoshay requested cancel_reporting successfully. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I03b497084f50c90f2d3be092f28eb95f131041db
2022-07-18synaptics: register MT_TOOL_PALM for input device.davidycchen
Bug: 239384823 Test: getevent -ltr and check MT_TOOL_PALM is reported. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I342ba3133e601e3b37206c86f660d441b5c52793
2022-06-24synaptics: avoid reserved offload buffer without queueddavidycchen
Before this patch, the touch_offload_reserve_frame() and the touch_offload_queue_frame() are call in different interrupts. Let both function be called in the same interrupt. Bug: 236763752 Test: enable/disable the twoshay while sliding without getting issue. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I56ba750dfdbb50bb6a2b9b73cefd3e5f8e56638a
2022-06-10synaptics: support dynamic grip configurationdavidycchen
Bug: 235176060 Test: Touch is working fine. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I8a5d2403db297cbf4c30655d64066c477c0b244f
2022-06-04Revert "synaptics: create a work for offload_running setting commands."Jonglin Lee
This reverts commit 04e6abfcb8bd29c48908e4fbddd1b9bba4cb33c7. Reason for revert: introduced race condition Bug: 234745637 Change-Id: Ie7aab658f515954b5c044ae190bc7d0d75f3b59a Signed-off-by: Jonglin Lee <jonglin@google.com>
2022-05-26synaptics: create a work for offload_running setting commands.davidycchen
Create a work for those settings commands when the offload_running status changes to avoid to poll response event which may bypass other touch events. Bug: 233827001 Test: Turn the twoshay on and off and check all setting commands works. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I8612e2d8ef216ba3a1b6d6340c15dd2875d531cd
2022-05-25synaptics: check touch status in work functiondavidycchen
Skip to send any command when the touch is off. Bug: 233023888 Test: build pass and touch works. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I4404714743e200a025a919df1d83dd60e5f7545b
2022-05-18synaptics: enable the helper callbackdavidycchen
Restore all the setting when an unexpected reset is detected. Bug: 233025101 Test: trigger reset with adb command and check if all the settings are correct. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I1a6266b45c04d5996b05de1ccdafb401d44f7748
2022-05-17synaptics: update driver version to 1.2.8davidycchen
Support tags moisture test. Bug: 232768414 Test: cat sys/class/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs/\ testing/pt_moisture Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: If5dc4f7ff02db93d72edb62f97867734bfe73750
2022-05-11synaptics: Support touch orientationdavidycchen
Update the vendor driver to v1.2.7 to support touch orientation and google defined major/minor. Add the touch offload capability for orientation. Bug: 227402881. Test: Check the touch reports by getevent. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I42277e0e717b22c56ec0482fcb42c962b1d910d7
2022-05-09synaptics: add trace point for touch driverdavidycchen
Add more trace point in the interrupt process so we can have more detail information when we get the systrace. Bug: 231409427 Test: trigger systrace and check the perfetto result. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I439efb3668abf74fee763a9573122e0e91e853c3
2022-05-06synaptics: dynamic change the touch report ratedavidycchen
Dynamic change the touch report rate depending on the display refresh rate. Bug: 222217451 Test: Switch the display refresh rate while finger is sliding without issue. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ia258208d644ef2b0c94b3a2296e5d8253cae1774
2022-04-18synaptics: release all touch events when the touch resumesdavidycchen
Release all touch events when the touch resumes to make sure there is no any stuck event after the touch suspends. Bug: 228422103 Test: No stuck point after suspend and resume. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I30f3e4a00be1a07d44ae59c47699a331930960ef
2022-04-11synaptics: set dynamic motion filter as default.davidycchen
Bug: 199104356 Test: Touch works normally. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I943708f5c1adab3e20fe7f26f15ec54f5d0df668
2022-04-01synaptics: fix invalid-access in syna_populate_framedavidycchen
Bug: 227697090 Test: Build KASAN and flash kernel image. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I73db27671a65f3218ca4382b66afc02fca306a53
2022-03-31Merge "synaptics: trigger reset and retry when the suspend process fails" ↵Yen-Chao Chen
into android13-gs-pixel-5.10
2022-03-31synaptics: trigger reset and retry when the suspend process failsdavidycchen
Trigger reset and retry when the suspend process fails to make sure touch can enter low power mode. Bug: 227139770 Test: Suspend successfully after reset. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ib13b7483272ea10e4589417ce6f0561f3d66de6a
2022-03-25synaptics: prevent to upstream abnormal heatmap config and datadavidycchen
Bug: 224887334 Test: Touch is workable. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I0a9cf3563fb2ebc0b42af1f01cc7dc4146d64cc2
2022-03-25Merge "synaptics: Set firmware grip/palm mode depending on offload config" ↵Yen-Chao Chen
into android13-gs-pixel-5.10
2022-03-24synaptics: add palm tool type in offload_reportdavidycchen
Bug:225748667 Test: touch is workable. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: If8ad53e3f9cb2531836b5e717f50f87031d7f492
2022-03-23synaptics: Set firmware grip/palm mode depending on offload configdavidycchen
Bug: 225749851 Test: grip/palm mode status correct. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ic41be11d2b41b0386e7cc224f8f726151560c821
2022-03-16Merge "synaptics: support to confiure heatmap compression threshold" into ↵Yen-Chao Chen
android13-gs-pixel-5.10
2022-03-15synaptics: support to confiure heatmap compression thresholddavidycchen
Read the heatmap compression threshold from the device tree and add an attribute for debugging. Bug: 223101478 Test: Be able to configure the compression threshold by attribute. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ia3d7f4efd3894d304e43f76224dd1d89f83a658a
2022-03-15synaptics: retry when the firmware update faildavidycchen
Queue the firmware update delay work again when it fails. Bug: 223725391 Test: Firmware update successfully. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I9521fd83a78aaf7ca34372407f7fb49bf18af53f
2022-03-07synaptics: support finger leaves event for UDFPSdavidycchen
Bug: 220992096 Test: LHBM is off right after finger leaves. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ibc4fda47f8c3faca57b03b8a675e271c8051baa9
2022-03-04synaptics: remove heatmap timerdavidycchen
Remove the heatmap timer and add a flag to make sure the heatmap frame will not be allocated without queuing. Bug: 222597960 Test: enable twoshay without getting ramdump. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ifda65afe30f056c50faf714ff3645c24a12dfe66
2022-03-02Merge "synaptics: report major and minor in display pixels" into ↵Yen-Chao Chen
android13-gs-pixel-5.10
2022-03-02synaptics: report major and minor in display pixelsdavidycchen
Read the resolution from device tree and report touch major and minor in display pixels. Bug: 221383103 Test: adb shell getevelt -lt Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I17f095509c36501f65f3428f98a6fb10328d40d9
2022-02-25synaptics: call cancel_work_sync while module remove to avoid NULL pointerdavidycchen
Bug: 221311444 Test: remove touch module during touch resume. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I1e83cc22ccff8126cf7040654a7d8cc60ad43204
2022-02-21Merge changes I428f1b9d,I00318352 into android13-gs-pixel-5.10Yen-Chao Chen
* changes: synaptics: enable continuously touch reporting synaptics: support to enable/disable the firmware grip and plam mode
2022-02-21synaptics: enable continuously touch reportingdavidycchen
Support dynamic changing motion filter status and continuously report touch coordinates and heatmap for 500ms when there is only one finger on the screen. Bug: 199104356. Test: Motion filter status is correct for single finger and multiple fingers. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I428f1b9d91779f6fe5376bd38980513f33fa4d8d
2022-02-21synaptics: support to enable/disable the firmware grip and plam modedavidycchen
Support to enable/disable the firmware grip/palm by sysfs node and dynamically change the mode depending on offload_running status. Bug: 199104316 Test: write sysfs node and check if the mode changing correctly. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I00318352b1146210ed582265f4c82c386f228e4b
2022-02-21synaptics: add cpu_latency_qos request during irqdavidycchen
Bug: 199104314 Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I05cccd8202e81b6ff71f11f763046a39c1514ea0
2022-02-14synaptics: support v4l2 heatmapdavidycchen
Bug: 199104315. Test: install v4l-heatmap-viewer.apk to check the result. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ieddfccec618e92b0f71abba6ef7a28c24509fe33
2022-01-25synaptics: support touch offloaddavidycchen
Add touch offload to upsteam the touch heatmap. Bug: 199104316 Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I96177718ec42d8c55867d35f27789e627cc46292 Signed-off-by: davidycchen <davidycchen@google.com>
2022-01-21synaptics: modify the heatmap report code from 0xc1 to 0xc3davidycchen
Modify the heatmap report code from 0xc1 to 0xc3 to align with the touch firmware. Bug: 213998822 Test: Touch is workable. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I1113dd68e4f8b930ed87ca40cdf0fb4007838e11
2022-01-20synaptics: let the driver retry for some casesdavidycchen
Add some retry mechanism for probe and resume functiom to let the driver recover touch by itself. Bug: 214087829 Bug: 214484327 Test: touch is workable. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I5a800d746a9dd451074b8775f50a1c697ca1578f
2022-01-03synaptics: register touch bus negotiatordavidycchen
Bug: 201008142. Test: bus negotiates successfully. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ia38ac64b3b8c9ab6cbbe535aee190c22804ebf84
2021-12-29synaptics: disable heatmap when the touch suspendsdavidycchen
Disable touch heatmap when the touch suspends otherwise the heatmap will keep reporting heatmap when the low power gesture mode is enabled. Bug: 199104336 Test: flash kernel image. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I0922c76f7d3b2b6f1186fcc797f692b582ab5ac3
2021-12-21synaptics: synaptics: update driver version to 0118davidycchen
Support two more testing - PID$12: Abs. Raw - PID$16: Trans Cap. Raw Correct the sequence of suspend-reset especially RESET_ON_RESUME enabled. Sample code to parse the custom gesture data. Enable RESET_ON_RESUME in default. Bug: 211379827 Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I888d0c68aa53020eb0e153105920b0fed133d8cb
2021-11-29synaptics: update driver version to 0115davidycchen
Update core lib. to 1.21 Bugs fixed. Have a callback to handle unexpected identify report generated from firmware. Able to handle the extra CRC bytes. Have the helper thread support. - Enable 'ENABLE_HELPER' if willing to activate this feature. - Have a sample code to start a helper task when an unexpected reset is detected. Set device into bootloader mode if failing to set up app fw. Support custom 'fw status' report ($c2). Add the implementations of custom gesture. - 'ENABLE_WAKEUP_GESTURE' is disabled in default. Enable if willing to enter LPWG mode in suspend. Bug: 208162255 Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Idfd45502293aa6fa42b8602a9bc663cb85301a45