summaryrefslogtreecommitdiff
path: root/goodix_ts_core.c
AgeCommit message (Collapse)Author
2023-07-19touch/goodix: Fix deadlock between irq and wakelockWendly Li
Bug: 289696186 Test: Check touch works properly Change-Id: I91f64e48efd67bdabaa64134e8e395a351d23728 Signed-off-by: Wendly Li <wendlyli@google.com>
2023-05-10goodix: move IRQ wake lock to GTIandroid-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.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.4android-14.0.0_r0.3android-14.0.0_r0.2android-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-beta5.3android-gs-tangorpro-5.10-u-beta4android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-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-android14android-gs-pantah-android14-releaseandroid-gs-pantah-5.10-u-beta5.3android-gs-pantah-5.10-u-beta4android-gs-pantah-5.10-u-beta2android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-u-beta4android-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-u-beta4android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-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-android14Yen-Chao Chen
Bug: 281463326 Test: Put fingers on the screen and suspend/resume the device. Change-Id: Ifcd26f180ec44c02be38822842e420e765619638 Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-03-22Merge android14-gs-pixel-5.15 into android13-gs-pixel-5.10-udcWendly Li
Change-Id: I427a0434230761bc28f1dc4358d5f45b8887920f Signed-off-by: Wendly Li <wendlyli@google.com>
2023-03-14touch/goodix: Support for setting report rateWendly Li
Bug: 273148352 Test: Trun on/off smooth display in settings Change-Id: I27c4bcf6df89b52c1a38ce4c5e9ff03ee90f72f1 Signed-off-by: Wendly Li <wendlyli@google.com>
2023-03-13touch/goodix: Support for reporting driver statusWendly Li
Bug: 273149008 Test: build pass Change-Id: I9c54ee9a559e4dfb8c71eab31e07a55a887ecb77 Signed-off-by: Wendly Li <wendlyli@google.com>
2023-03-09touch/goodix: Support coordinate filterWendly Li
Bug: 269560367 Test: Check coordinate filter works properly Change-Id: I2fbf972d1d67f3c28b090a9db1569e52e407c384 Signed-off-by: Wendly Li <wendlyli@google.com>
2023-03-08Merge changes I2b155400,I3e2da8ca,I4fb79170 into android14-gs-pixel-5.15Wendly Li
* changes: touch/goodix: Import v1.2.4 driver touch/goodix: Import v1.2.3 driver touch: goodix: Update report stylus event
2023-03-07touch/goodix: Import v1.2.3 driverWendly Li
Bug: 269560367 Test: Check coordinate filter works properly Change-Id: I3e2da8cadd2ee07c3e3bcb4b69189559f63796de Signed-off-by: Wendly Li <wendlyli@google.com>
2023-03-07touch: goodix: Update report stylus eventRavi Jain
- Fix pen pressure algo - Report entry timestamp to input subsystem - Add systrace node Test: Tested by flashing locally Bug: 262478113 Bug: 263444046 Change-Id: I4fb791708b2893cb74ccdc050cb1732f96414b33 Signed-off-by: Ravi Jain <raviajain@google.com>
2023-03-07goodix: support GTI irq/reset commandsYen-Chao Chen
Support GTI unified commands. Bug: 242559052 Test: test with the commands. Change-Id: I47920055a1d47c7a24c5f166c9043b300d7f9bdd Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-02-22touch/goodix: fix double resetWendly Li
ESD check will fail on firmware reset. When ESD check is failed, it will reset firmware again. Skip ESD check to avoid double reset. Double reset may cause self-test failure and other unexpected issues. Bug: 267991839 Test: Check self-test works properly Change-Id: I17063445e71832077766d3d9aa3e6457f4b9e4b7 Signed-off-by: Wendly Li <wendlyli@google.com>
2023-02-07touch/goodix: Move heatmap read protection to GTIWendly Li
Bug: 262053705 Bug: 267991839 Test: check heatmap works properly Change-Id: I1a0dd4dc746037ad4f05e2734e73bce225af5ddd Signed-off-by: Wendly Li <wendlyli@google.com>
2023-02-02goodix: correct log formatdavidycchen
Bug: 243078934 Test: build pass. Change-Id: Icb2566a9a5a514c93614ee2da5b7d954f9bfe6c8 Signed-off-by: davidycchen <davidycchen@google.com>
2023-01-06touch: goodix: Update report stylus eventandroid-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-android13-qpr3android-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-android13-qpr3Ravi Jain
- Fix pen pressure algo - Report entry timestamp to input subsystem - Add systrace node Test: Tested by flashing locally Bug: 262478113 Bug: 263444046 Change-Id: I4fb791708b2893cb74ccdc050cb1732f96414b33 Signed-off-by: Ravi Jain <raviajain@google.com>
2022-12-14touch/goodix: Correct a typo in logMason Wang
The original typo string is in Ravi's pa/2343492, I help to correct it. Bug: 230827813 Test: Build pass. Change-Id: Ia93140adf826b8cd4e5331da7ded4355f50e7ce2 Signed-off-by: Mason Wang <masonwang@google.com>
2022-12-08touch/goodix: Use ts_xxx() instead of GOOG_XXX()Mason Wang
Bug: 261127820 Test: Build pass. Change-Id: Id2859fd143ffd2eabab5409c73d9dcc95c264ed1 Signed-off-by: Mason Wang <masonwang@google.com>
2022-12-06Merge "touch: goodix: Fix deadlock between irq and wakelock" into ↵Ravi Jain
android13-gs-pixel-5.10-tm-qpr2
2022-12-06touch: goodix: Fix deadlock between irq and wakelockRavi Jain
1. Use of disable_irq_nosync instead of disable_irq. 2. Add Error handling while obtaining irq_wakelock. Test: Flashed locally to test resume/suspend operations. Bug: 230827813 Change-Id: Icf0e6ce80c9b5e9e3b95c9f8d4debf1163b69843 Signed-off-by: Ravi Jain <raviajain@google.com>
2022-12-05touch: goodix: Fix deadlock between irq and wakelockRavi Jain
1. Use of disable_irq_nosync instead of disable_irq. 2. Add Error handling while obtaining irq_wakelock. Test: Flashed locally to test resume/suspend operations. Bug: 230827813 Change-Id: Icf0e6ce80c9b5e9e3b95c9f8d4debf1163b69843 Signed-off-by: Ravi Jain <raviajain@google.com>
2022-11-30touch/goodix: Import v1.2.2 driverWendly Li
Bug: 260835421 Test: Check one bin and two bin work properly Change-Id: I628ca6da4e33315da5489888d7c0d6617541bdb5 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-11-24Merge "goodix: move finger releasing process to GTI." into ↵Yen-Chao Chen
android13-gs-pixel-5.10-tm-qpr2
2022-11-23goodix: move finger releasing process to GTI.davidycchen
Bug: 260020612 Test: suspend/resume the device. Change-Id: I54a183f8dc618bb2f54d87e45893d4439a7f6e64 Signed-off-by: davidycchen <davidycchen@google.com>
2022-11-22touch/goodix: Fix free input device twiceWendly Li
Bug: 255257453 Test: Run rmmod goodix_brl_touch; insmod goodix_brl_touch.ko Change-Id: Ib08e6e541b15e684c244ef95946e7b29631b96d2 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-11-02touch/goodix: Fix typoWendly Li
Bug: 256987566 Test: Build pass Change-Id: I43e3671539d4fef75fc40f6a29a38ce882ab254d Signed-off-by: Wendly Li <wendlyli@google.com>
2022-10-27Merge android13-gs-pixel-5.10-tm-qpr1 into android13-gs-pixel-5.10-tm-qpr2Robin Peng
Bug: 255246572 Change-Id: I386fa3d0252cf608f7caa344a580c1af61e13404 Signed-off-by: Robin Peng <robinpeng@google.com>
2022-10-18touch/goodix: Fix the buffer size of self sensing dataWendly Li
Bug: 201610482 Test: cat /sys/devices/virtual/goog_touch_interface/gti.0/ss_diff Change-Id: I3636662295a440b67d3a392801c768909251bdf4 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-10-11touch/goodix: Use different test limits for different panelWendly Li
Bug: 250922105 Test: echo auto_test > /proc/goodix_ts/driver_test Change-Id: I9dcdef8e689a7c7d0de83bdab9240046ba8fedcf Signed-off-by: Wendly Li <wendlyli@google.com>
2022-10-05touch/goodix: Avoid sending gesture cancel event to normal UIWendly Li
Bug: 251060590 Test: Check udfps works properly Change-Id: I40f5c2a1c8a6f9d12ac11ff26787817628fe947e Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-29touch/goodix: Import v1.1.3 driverWendly Li
Bug: 249448774 Test: touch works properly Change-Id: Ie98e58fe9f5c53f068351541d86f7ad3c28e71cb Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-28touch: goodix: Add info for input devices for association to displays.Ravi Jain
Also add missing header file. Test: Test the build locally to check if it works. Bug: 248180415 Signed-off-by: Ravi Jain <raviajain@google.com> Change-Id: Ic6a01718dd6b574ecb16b9ca5e66c2cade68dcb5
2022-09-21touch: goodix: Fix building errors when disabling GTIWendly Li
Bug: 246200605 Test: Build successfully Change-Id: I13601ae0e0d5e494415eb5a2ee1fc7d2c5d82b7f Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-21Merge "touch/goodix: Migrate pm qos into GTI." into ↵TreeHugger Robot
android13-gs-pixel-5.10-tm-qpr1
2022-09-19touch: goodix: Fix sending the wrong cancel event.Wendly Li
Bug: 246916489 Bug: 247039681 Test: Check the UI will not be touched and cancelled. Change-Id: I2c6d97dcc120770e155c29a30399675df7b9708e Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-19touch/goodix: Fix can't find correct display panelWendly Li
Bug: 245261386 Test: Check the driver updates the correct fw and cfg Change-Id: I881da0102a6b44b047db28e5e9d1699f4ebef1ec Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-15touch/goodix: Migrate pm qos into GTI.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Icedc06418c52c994b263bb51d06504637c257453
2022-09-13Merge "touch: goodix: Resolve compilation issues when disabling GTI ↵Ravi Jain
features." into android13-gs-pixel-5.10-tm-qpr1
2022-09-12touch: goodix: Resolve compilation issues when disabling GTI features.Ravi Jain
Test: Compiled locally with GTI disabled. Bug: 246200605 Signed-off-by: Ravi Jain <raviajain@google.com> Change-Id: I96841d5aa95af7a42902da168cd55d0a64f7cfde
2022-09-12touch/goodix: Fix null pointer exceptionWendly Li
Bug: 245694496 Bug: 245500983 Test: cat /sys/devices/virtual/goog_touch_interface/gti.0/self_test Change-Id: I18c72645285f8ff89b39218fbc189ceb807275a2 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-12touch/goodix: Support updating different fw and cfg by display IDWendly Li
Bug: 245261386 Test: Check the driver updates the correct fw and cfg Change-Id: I04e1ad0108f4a4361f5b270eb7c5575f5dad211a Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-06touch/goodix: migrate input process into GTI irq.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I91bb66d1cae8ff382a68d3accc45036450d62010
2022-09-05Merge changes I64268295,Id853e7e4 into android13-gs-pixel-5.10-tm-qpr1Wendly Li
* changes: touch/goodix: Import v1.1.1 driver touch/goodix: Import v1.1.0 driver
2022-09-05touch/goodix: Import v1.1.1 driverWendly Li
Bug: 245028037 Test: Check esd checker will not be enabled when device is suspended Change-Id: I64268295f8373b95864dd4fa8bdebe0579ffed81 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-02touch/goodix: use GTI to request threaded irq.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ie608c6c38ecff4678de4d40a3d9e4e5e57a4f63f
2022-08-15touch/goodix: Support MS, SS and selftest for gtiWendly Li
Bug: 214118904 Test: Check dumpstate works properly Change-Id: I8a94def8811b2ea34b80e47affac8b50b615eecc Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-29touch/goodix: Fix LHBM can't be turn off immediately.Wendly Li
Bug: 214118944 Test: LHBM is off right after LPTW finger leaves. Change-Id: I7cad86dc38d5d6007eaef0fea623e1e03a8dddbd Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-29touch/goodix: Support ping and get-fw-version for gtiWendly Li
Bug: 214118904 Test: Check dumpstate works properly Change-Id: Iffdfed8a2fd9c052bb87276e7eb52520196584d7 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-26touch/goodix: Import v1.0.13 driverWendly Li
Bug: 214118902 Test: Check fw updating works peoprly Change-Id: If1aca9955515a1d8ae71e302c14313c0eee97f66 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-25touch/goodix: Fix the unit of major and minorWendly Li
Bug: 214118815 Test: Check the size of major/minor is correct Change-Id: If6a86e194a7ee9f1818573694813433c4740e613 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-21touch/goodix: Support finger leaves event for UDFPS.Wendly Li
Bug: 214118944 Bug: 239381635 Test: LHBM is off right after LPTW finger leaves. Change-Id: I95615fc8b75d15db41765d9320aa68d9d016e1a2 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-18touch/goodix: Fix the unit of orientationWendly Li
Bug: 238907889 Test: getevent -rlt Change-Id: I936fbb34c0dfc7ca034141a4b0a39b0bd84084ae Signed-off-by: Wendly Li <wendlyli@google.com>