summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-25sec: modyfy the ABS_MT_ORIENTATION range as -4096 to 4096android-u-qpr3-beta-2_r0.1android-u-qpr3-beta-2.1_r0.6android-u-qpr3-beta-1_r0.6android-u-qpr2-beta-3_r0.1android-u-qpr2-beta-3.1_r0.6android-u-qpr2-beta-1_r0.8android-u-qpr1-beta-1_r0.6android-u-preview-2_r0.1android-u-preview-1_r0.1android-u-beta-5_r0.6android-u-beta-5.3_r0.6android-u-beta-5.2_r0.2android-u-beta-4_r0.6android-u-beta-3_r0.1android-u-beta-2_r0.1android-u-beta-2.1_r0.1android-u-beta-1_r0.2android-t-qpr3-beta-3_r0.2android-t-qpr3-beta-3.1_r0.2android-t-qpr3-beta-2_r0.2android-t-qpr3-beta-1_r0.2android-t-qpr2-beta-3_r0.2android-t-qpr2-beta-3.2_r0.3android-t-qpr2-beta-2_r0.2android-t-qpr2-beta-1_r0.3android-t-qpr1-beta-3_r0.1android-t-qpr1-beta-2_r0.3android-t-qpr1-beta-1_r0.2android-t-beta-4_r0.3android-t-beta-3_r0.3android-t-beta-3.3_r0.3android-t-beta-3.2_r0.3android-14.0.0_r0.78android-14.0.0_r0.68android-14.0.0_r0.58android-14.0.0_r0.47android-14.0.0_r0.46android-14.0.0_r0.32android-14.0.0_r0.20android-14.0.0_r0.12android-14.0.0_r0.1android-13.0.0_r0.81android-13.0.0_r0.72android-13.0.0_r0.67android-13.0.0_r0.62android-13.0.0_r0.57android-13.0.0_r0.52android-13.0.0_r0.47android-13.0.0_r0.42android-13.0.0_r0.3android-13.0.0_r0.18android-13.0.0_r0.13android-13.0.0_r0.122android-13.0.0_r0.111android-13.0.0_r0.102android-msm-redbull-4.19-u-preview-2android-msm-redbull-4.19-u-preview-1android-msm-redbull-4.19-u-beta5.3android-msm-redbull-4.19-u-beta5.2android-msm-redbull-4.19-u-beta5android-msm-redbull-4.19-u-beta4android-msm-redbull-4.19-u-beta3android-msm-redbull-4.19-u-beta2android-msm-redbull-4.19-u-beta1android-msm-redbull-4.19-t-qpr3-beta-3android-msm-redbull-4.19-t-qpr3-beta-2android-msm-redbull-4.19-t-qpr2-beta-3.2android-msm-redbull-4.19-t-qpr2-beta-1android-msm-redbull-4.19-t-qpr1-beta-2android-msm-redbull-4.19-t-beta-4android-msm-redbull-4.19-t-beta-3android-msm-redbull-4.19-android14-releaseandroid-msm-redbull-4.19-android14-qpr3-betaandroid-msm-redbull-4.19-android14-qpr2-betaandroid-msm-redbull-4.19-android14-qpr2android-msm-redbull-4.19-android14-qpr1-betaandroid-msm-redbull-4.19-android14-qpr1android-msm-redbull-4.19-android14android-msm-redbull-4.19-android13-qpr3-beta1android-msm-redbull-4.19-android13-qpr3android-msm-redbull-4.19-android13-qpr2-betaandroid-msm-redbull-4.19-android13-qpr2android-msm-redbull-4.19-android13-qpr1-beta-3android-msm-redbull-4.19-android13-qpr1-betaandroid-msm-redbull-4.19-android13-qpr1android-msm-redbull-4.19-android13davidycchen
Align the ABS_MT_ORIENTATION range as touch_offload. Bug: 230270099 Test: Touch works fine. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I0897533a4d59d8add8027a06597ad79d2c44a1f1
2022-03-21touch/sec: update FW grip with offload filter_grip setting.android-t-beta-2_r0.3android-msm-redbull-4.19-t-beta-2Super Liu
Bug: 224880464 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I68701cc40abf74bb3759fe0df9e73827755e30ad
2022-03-04touch: sec: support rotation reportingandroid-t-beta-1_r0.3android-msm-redbull-4.19-t-beta-1Steve Pfetsch
Enable sec touch driver to support rotation reported to it by touch_offload. Bug: 218744675 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I6efa9cee0139707a3d0e354ccc9d2da42d50d844
2021-10-12Merge android-msm-pixel-4.19-sc-qpr1 into android-msm-pixel-4.19android-t-preview-2_r0.3android-t-preview-1_r0.3android-msm-redbull-4.19-t-preview-2android-msm-redbull-4.19-t-preview-1JohnnLee
SBMerger: 379283923 Change-Id: I4103ca514fb79f83eec228dfc58929a16f6d112b Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-10-04Merge branch 'android-msm-pixel-4.19-sc-security' into ↵android-s-v2-beta-3_r0.4android-s-v2-beta-2_r0.4android-s-v2-beta-1_r0.4android-s-qpr3-beta-3_r0.3android-s-qpr3-beta-2_r0.3android-s-qpr3-beta-1_r0.3android-12.1.0_r0.4android-12.1.0_r0.33android-12.1.0_r0.26android-12.1.0_r0.20android-12.1.0_r0.14android-12.0.0_r0.40android-12.0.0_r0.34android-12.0.0_r0.24android-msm-redbull-4.19-s-v2-beta-3android-msm-redbull-4.19-s-qpr3-beta-3android-msm-redbull-4.19-s-qpr3-beta-2android-msm-redbull-4.19-android12Landroid-msm-redbull-4.19-android12-v2-beta-2android-msm-redbull-4.19-android12-qpr3android-msm-redbull-4.19-android12-qpr1android-msm-redbull--s-v2-beta-1Eva Huang
android-msm-pixel-4.19-sc-qpr1 Dec 2021.1 Bug: 200917576 Change-Id: I0e3b681f43b1ce26541f59203ff91ba6e377659b
2021-10-03Merge android-msm-pixel-4.19-sc-qpr1 into android-msm-pixel-4.19PixelBot AutoMerger
SBMerger: 379283923 Change-Id: Ie2e75bf754bc2c0c13aec29f0f8d082ca3513b1b Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-09-30touch/sec: disable debug sysfs.Super Liu
Below sysfs will be disabled. /sys/devices/virtual/sec/sec_ts/ sec_ts_enter_recovery sec_ts_gesture_status sec_ts_reg sec_ts_reg_manual sec_ts_regread sec_ts_regread_manual sec_ts_regreadsize sec_ts_regreadsize_manual Bug: 194499021 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I2eaa3720bff3e7d98a07adfd1f4a37eec79a2c72 Merged-In: I2eaa3720bff3e7d98a07adfd1f4a37eec79a2c72 (cherry picked from commit e8cb55be314046fda6aeb37cf1e5803c424c6f6c)
2021-09-28touch/sec: disable debug sysfs.Super Liu
Below sysfs will be disabled. /sys/devices/virtual/sec/sec_ts/ sec_ts_enter_recovery sec_ts_gesture_status sec_ts_reg sec_ts_reg_manual sec_ts_regread sec_ts_regread_manual sec_ts_regreadsize sec_ts_regreadsize_manual Bug: 194499021 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I2eaa3720bff3e7d98a07adfd1f4a37eec79a2c72
2021-07-26Merge 'android-msm-barbet-4.19' into android-msm-pixel-4.19Lucas Wei
Bug: 194667419 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I4fa0cfdd998f3b6d0e08b371d8ec8e64f43c59ff
2021-06-16touch: sec: add mutex to protect offload reportandroid-s-beta-5_r0.5android-s-beta-4_r0.5android-s-beta-3_r0.5android-12.0.0_r0.6android-12.0.0_r0.14android-msm-redbull-4.19-s-beta-5android-msm-redbull-4.19-s-beta-4android-msm-redbull-4.19-s-beta-3android-msm-redbull-4.19-android12davidycchen
When the release_all_fingers and offload_report run at the same time, it may cause the input report conflict before input sync. bug: 190460965 Test: flash boot.img and vendor_boot.img. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ib3a1f8970f15dc28a73dece18b5307cb5deba220
2021-06-02Merge 'android-msm-pixel-4.19' into android-msm-barbet-4.19android-s-v2-beta-3_r0.5android-s-v2-beta-2_r0.5android-s-v2-beta-1_r0.5android-s-qpr3-beta-3_r0.4android-s-qpr3-beta-2_r0.4android-s-qpr3-beta-1_r0.4android-s-beta-5_r0.6android-12.1.0_r0.5android-12.1.0_r0.34android-12.1.0_r0.27android-12.1.0_r0.21android-12.1.0_r0.15android-12.0.0_r0.7android-12.0.0_r0.41android-12.0.0_r0.35android-12.0.0_r0.25android-12.0.0_r0.15android-msm-barbet-4.19-s-v2-beta-3android-msm-barbet-4.19-s-v2-beta-1android-msm-barbet-4.19-s-qpr3-beta-3android-msm-barbet-4.19-s-qpr3-beta-2android-msm-barbet-4.19-s-beta-5android-msm-barbet-4.19-android12Landroid-msm-barbet-4.19-android12-v2-beta-2android-msm-barbet-4.19-android12-qpr3android-msm-barbet-4.19-android12-qpr1android-msm-barbet-4.19-android12Lucas Wei
Bug: 187909050 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I8b1034f0217b5aa2816251e42e49bba68d8a51a9
2021-05-07input: touchscreen: sec_ts: Report edge and palm touchesandroid-s-beta-2_r0.5android-msm-redbull-4.19-s-beta-2Steve Pfetsch
Map edge, palm, and cancel touches to MT_TOOL_PALM, effectively allowing them to be treated as cancel events. Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I7fb1fa49942f5166da50a2e61753d6b0634b909a
2021-04-08Merge branch android-msm-pixel-4.19 into android-msm-barbet-4.19JohnnLee
Bug: 184813985 Change-Id: I36d914a7d645766899f2cbeb3de1ce209d9b51fc
2021-01-13Merge branch 'android-msm-pixel-4.19-rvc-qpr2' into android-msm-barbet-4.19android-11.0.0_r0.116android-11.0.0_r0.110android-11.0.0_r0.106android-msm-barbet-4.19-android11-d2Lucas Wei
Merge kernel from build ab/7056683 Bug: 177377122 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I3e259965aedd2b871ae9291a500213a1767f554b
2020-11-07Merge android-msm-pixel-4.19-rvc-qpr2 into android-msm-pixel-4.19android-s-preview-3_r0.5android-s-preview-2_r0.5android-s-preview-1_r0.5android-s-beta-1_r0.5android-msm-redbull-4.19-s-preview-3android-msm-redbull-4.19-s-preview-2android-msm-redbull-4.19-s-preview-1android-msm-redbull-4.19-s-beta-1Petri Gynther
Signed-off-by: Petri Gynther <pgynther@google.com> Change-Id: Ie65885f3a0b95b0cd18d32190a7e1731e59544e3
2020-11-06Merge android-msm-pixel-4.19-rvc-qpr1 into android-msm-pixel-4.19-rvc-qpr2android-11.0.0_r0.95android-11.0.0_r0.86android-11.0.0_r0.81android-11.0.0_r0.76android-11.0.0_r0.66android-11.0.0_r0.115android-11.0.0_r0.114android-11.0.0_r0.105android-11.0.0_r0.100android-msm-sunfish-4.14-android11-qpr3android-msm-redbull-4.19-android11-qpr3android-msm-redbull-4.19-android11-qpr2PixelBot AutoMerger
SBMerger: 325904710 Change-Id: I56009b3e383c6140db96bd30445aa4a808c4ac80 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2020-11-03input: touchscreen: sec_ts: reset touch to neutral state when releasedandroid-11.0.0_r0.57android-11.0.0_r0.56android-11.0.0_r0.47android-11.0.0_r0.46android-11.0.0_r0.33android-11.0.0_r0.32android-msm-redfin-4.19-android11-qpr1android-msm-bramble-4.19-android11-qpr1Steve Pfetsch
touch_offload slots were left with non-zero pressure and size when (un)locked_release_all_finger was called during suspend. Reset these fields to zero and report pressure=0 as part of releasing touches. Bug: 169785626 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I1dadc52943f738a427fa945f211dcaa2580390fd (cherry picked from commit 4bad9c7d4a382dc119f07f368f5eff4d98745621) (cherry picked from commit 5f3edf20df8b9a93ebe492a9eb2b51fa07dcf388)
2020-10-30input: touchscreen: sec_ts: reset touch to neutral state when releasedSteve Pfetsch
touch_offload slots were left with non-zero pressure and size when (un)locked_release_all_finger was called during suspend. Reset these fields to zero and report pressure=0 as part of releasing touches. Bug: 169785626 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I1dadc52943f738a427fa945f211dcaa2580390fd (cherry picked from commit 4bad9c7d4a382dc119f07f368f5eff4d98745621)
2020-10-28sec_touch: refactor for all touches release and coord event logsSuper Liu
Test: check for touch operation during suspend and resume Change-Id: I363c222f1989f72e1433980f879b224d5411e747 Signed-off-by: Super Liu <supercjliu@google.com>
2020-10-28input: touchscreen: sec_ts: reset touch to neutral state when releasedSteve Pfetsch
touch_offload slots were left with non-zero pressure and size when (un)locked_release_all_finger was called during suspend. Reset these fields to zero and report pressure=0 as part of releasing touches. Bug: 169785626 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I1dadc52943f738a427fa945f211dcaa2580390fd
2020-10-21Merge branch 'android-msm-pixel-4.19-rvc-qpr1' into android-msm-barbet-4.19Roger Liao
Merge from build 6891367 Bug: 162288636 Signed-off-by: Roger Liao <rogerliao@google.com> Change-Id: Icb9f7b23eb5453ac8b6d2e8223c593bbd6dad530
2020-10-02Merge android-msm-pixel-4.19-rvc-qpr1 into android-msm-pixel-4.19PixelBot AutoMerger
SBMerger: 325904710 Change-Id: I66e90b47e34dbc79c6095a742e11d422828e9132 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2020-09-24input: touchscreen: sec_ts: improve touch_offload supportSteve Pfetsch
Fully route pressure and major/minor size of touch points, apply routed timestamps, and keep firmware grip closely synced with touch_offload. Additional miscellaneous changes to support updated touch_offload interface. Bug: 167758661 Bug: 168076476 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I3669603d8ef6a32bfd0613383eb2653487dfea45
2020-09-24input: touchscreen: sec_ts: improve touch_offload supportSteve Pfetsch
Fully route pressure and major/minor size of touch points, apply routed timestamps, and keep firmware grip closely synced with touch_offload. Additional miscellaneous changes to support updated touch_offload interface. Bug: 167758661 Bug: 168076476 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I3669603d8ef6a32bfd0613383eb2653487dfea45
2020-09-12sec_touch: release all fingers for offload caseSuper Liu
Bug: 167758661 Change-Id: I783d524c2c1f6a39dbcc4637fdb95ba3b185f560 Signed-off-by: Super Liu <supercjliu@google.com> (cherry picked from commit f18fb6c6f33b237bd5bed3e11f89ace042471df8)
2020-09-11sec_touch: release all fingers for offload caseSuper Liu
Bug: 167758661 Change-Id: I783d524c2c1f6a39dbcc4637fdb95ba3b185f560 Signed-off-by: Super Liu <supercjliu@google.com>
2020-08-05sec_touch: refine the log level for probeSuper Liu
Bug: 162227340 Change-Id: I737d99cb0b2a27c5dba1b1580bb96671dbb06320 Signed-off-by: Super Liu <supercjliu@google.com>
2020-07-30sec_touch: refine mis-calibration checkSuper Liu
Unify the entry to do the mis-calibration check. This include the sufficient delay to lock the active mode before trigger this check. And, add run_cal_check sysfs for mis-calibration check and debug analysis. Bug: 161424891 Bug: 161890987 Change-Id: Ic64abce28c3861a27086b841617f44af99840eb3 Signed-off-by: Super Liu <supercjliu@google.com>
2020-07-16input: touchscreen: sec_ts: export to the touch_offload driverandroid-11.0.0_r0.27android-11.0.0_r0.26android-11.0.0_r0.18android-11.0.0_r0.16android-msm-redfin-4.19-android11-d1android-msm-bramble-4.19-android11-d1Steve Pfetsch
The touch_offload driver makes it possible for the sec_ts driver to export heatmap and coordinate data to a user space consumer. The sec_ts driver is responsible for initializing the touch_offload driver with information about its supported capabilities. Then, as touch events occur, the sec_ts driver must capture required heatmap/coordinate frames, load it into buffers provided by the touch_offload driver, and submit the buffers back to the touch_offload driver. Finally, the sec_ts driver must report touch input events through a callback provided to touch_offload. Bug: 143723508 Bug: 139955910 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I8a0c25813d0597ce2c16d410bc33f249f99fc689
2020-06-19Merge branch 'android-msm-pixel-4.19' into android-msm-barbet-4.19Roger Liao
Merge from build 6598357 Bug: 159415664 Bug: 159149026 Signed-off-by: Roger Liao <rogerliao@google.com> Change-Id: Id97634565d54a6e81326f8b77ec43f6af9c48271
2020-06-16sec_touch: add spi post delay for corresponding type readingSuper Liu
Bug: 158529853 Change-Id: If14792e3f75efff524be5a06e3306e3c30d30216 Signed-off-by: Super Liu <supercjliu@google.com>
2020-06-11Merge branch 'android-msm-pixel-4.19' into android-msm-barbet-4.19Roger Liao
From build 6575781 Bug: 158714637 Signed-off-by: Roger Liao <rogerliao@google.com> Change-Id: I7a015909f4376153405934a4959196ae01a9afcd
2020-06-08sec_touch: add sysfs to support print format changeSuper Liu
Bug: 144326854 Change-Id: I5aecf436d36fcb51a7438c1d2e18fa5844598503 Signed-off-by: Super Liu <supercjliu@google.com>
2020-06-08sec_touch: unregister power supply notification during driver removeSuper Liu
Bug: 158214266 Change-Id: I99b815f046f8ca0a0cde35f998e9a3c44f7d99a1 Signed-off-by: Super Liu <supercjliu@google.com>
2020-06-04sec_touch: only update charger mode status after suspendSuper Liu
In normal case, touch driver will follow current power supply notification to change corresponding charger mode. But, if this notification is triggered after touch suspend, driver should only update charger mode stauts to avoid any i/o transmission. And, the latest charger mode will apply after touch driver resume. Bug: 158067778 Change-Id: I3627a83dcfa4df74bce77ce4825425f0140a99a2 Signed-off-by: Super Liu <supercjliu@google.com>
2020-06-02sec_touch: add sysfs to ignore charger notifier to change charger modeSuper Liu
Bug: 154486745 Change-Id: I8e05aa4bf66250c19100999336dfcc53f77601b4 Signed-off-by: Super Liu <supercjliu@google.com>
2020-06-02sec_touch: change charger mode if wireless charger onlineSuper Liu
When wireless charger is online, harmonic by charging frequency will hit the touch band and cause ghost touch. Bug: 154486745 Change-Id: Ic8bbab34e96ef8545233250ab444087f3febcfd5 Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-28sec_touch: check device is valid before execute sec_ts_remove()Super Liu
Bug: 156978017 Change-Id: I5fea3b7b19e10c63a39ef143cb5d1af74be08007 Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-20sec_touch: resolve the issue for KASAN use-after-freeSuper Liu
Bug: 156978017 Change-Id: I371896ffda4a98e2c749a7fd9764ea53f0e55c72 Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-04Merge "sec_touch: remove extraneous work queue flush" into ↵TreeHugger Robot
android-msm-pixel-4.19
2020-05-04Merge "sec_touch: enable firmware verification" into android-msm-pixel-4.19TreeHugger Robot
2020-05-04sec_touch: remove extraneous work queue flushSteve Pfetsch
There is an unconditional flush of the suspend/resume work queue in the screen state callback from the display driver. There is no need to immediately flush the queue since any pending suspend/resume work will be canceled or completed before the next suspend/resume is queued. Bug: 155280636 Test: after suspend/resume/AoD, touch can work Change-Id: Ibe26f057c5ff942b975710af43f40bf104f97917 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Signed-off-by: Ken Huang <kenbshuang@google.com>
2020-05-04sec_touch: enable firmware verificationSuper Liu
Bug: 143739349 Change-Id: I0bfe22ddbb7a996e6c807c28b55a484377e90d97 Signed-off-by: Super Liu <supercjliu@google.com>
2020-04-24sec_touch: use IS_ENABLED macro for builtin and module config checkSuper Liu
Bug: 140591953 Change-Id: I18b98ba7aaefdee65f715e02c4371c9660586917 Signed-off-by: Super Liu <supercjliu@google.com>
2020-04-24sec_touch: set MT_TOOL_FINGER only to force as touchscreen input sourceSuper Liu
Currently, if setup MT_TOOL_TYPE range from MT_TOOL_FINGER to MT_TOOL_MAX, it will become AINPUT_SOURCE_STYLUS as input source for Android. Bug: 154432814 Change-Id: I242f7d779875a7bb06463d084ac45c5c27185b1a Signed-off-by: Super Liu <supercjliu@google.com>
2020-04-23GKI: sec_touch: Enable modularization of the touch bus negotiator driverHridya Valsaraju
These changes are required for the touch bus negotiator driver to work correctly when CONFIG_TOUCHSCREEN_TBN=m. Test: build, boot, touch works, tapping phone to check notification worked. Bug: 154089962 Change-Id: I2c0de7f91e94a6119966c130fe9fa207220910dd Signed-off-by: Hridya Valsaraju <hridya@google.com>
2020-04-21sec_touch: correct the heatmap data as big-endian for unitySuper Liu
Bug: 154564993 Change-Id: Id2d76e26ee1621d33cd014bde1d9034992b277ce Signed-off-by: Super Liu <supercjliu@google.com>
2020-04-21sec_touch: remove read stuffing bytesSuper Liu
Bug: 140591953 Change-Id: I7608d6f8be28df3542cba52af33d67428e3f0883 Signed-off-by: Super Liu <supercjliu@google.com>
2020-04-20sec_touch: support touch cancel modeSuper Liu
Bug: 147818023 Change-Id: Ieb5467fc0bbcda6c978becfdaed1dea314498f08 Signed-off-by: Super Liu <supercjliu@google.com>
2020-04-20sec_touch: continuously report heatmap data for first single touchSuper Liu
Bug: 154432814 Change-Id: I30779158b3021193a411296c53e5ca47a9b038a8 Signed-off-by: Super Liu <supercjliu@google.com>