summaryrefslogtreecommitdiff
path: root/touch_bus_negotiator.c
AgeCommit message (Collapse)Author
2022-12-22touch/common: return EPROBE_DEFER when the GPIO is invalid.android-u-preview-1_r0.4android-u-preview-1_r0.2android-gs-raviole-5.10-u-preview-1android-gs-pantah-5.10-u-preview-1davidycchen
The GPIO may be invalid when this module loads before pinctrl module so return EPROBE_DEFER for retry. Bug: 263205231 Test: no kernel panic Change-Id: Ibe4910ce2015ab464faf3ee35b4fb06524a6512a Signed-off-by: davidycchen <davidycchen@google.com>
2022-11-14touch/TBN: Double check the value of aoc2ap_gpio when timeoutMason Wang
To verify the value of aoc2ap_gpio again when TBN operation is timeout to judge the AP requests/releases bus successfully or not. Bug: 257076750 Test: Basic touch operation and wake-up gesture are working well Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I5a895b9360c7abbb7b9b502862a1212ca2e7175a Merged-In: I5a895b9360c7abbb7b9b502862a1212ca2e7175a (cherry picked from commit 4b8c9ca83c5bb67a05d138959dc4c2d8314d9e32)
2022-08-18touch/common: add debug log for TBN.Mason Wang
Bug: 239161226 Test: Touch operation is normal. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I95edd976adf04374c2e2b5a11d0bd5cd766f9356
2022-03-10Fix dependency for parallel module initandroid-t-beta-1_r0.4android-gs-raviole-5.10-t-beta-1chungkai
If using ag/16375631 to load module in parallel, kernel will occur panic after suspend Signed-off-by: chungkai <chungkai@google.com> Change-Id: Icb71c27090e4f95f772b8e523586a21ca9a2e922
2021-06-08touch: common: modify the return value when register_tbn failedandroid-s-v2-beta-3_r0.6android-12.1.0_r0.6android-12.1.0_r0.22android-12.1.0_r0.16android-12.0.0_r0.9android-12.0.0_r0.8android-12.0.0_r0.42android-12.0.0_r0.36android-12.0.0_r0.26android-12.0.0_r0.17android-12.0.0_r0.16android-gs-raviole-5.10-s-v2-beta-3android-gs-raviole-5.10-android12Landroid-gs-raviole-5.10-android12-qpr1-dandroid-gs-raviole-5.10-android12-d1davidycchen
Return 0 when the tbn_context doesn't exist because tbn is not an always on feature. Bug: 186717670 Bug: 190339589 Test: flash boot and vendor_boot. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I4a842b53b4efaa89116ecedbabd82bbf1a311e71
2021-05-31touch: common: modify the tbn driver as a platform driverdavidycchen
Modify the tbn driver as a platform driver so that it can support multiple devices. Bug: 186717670 Test: tbn works. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ic4eef2efd6976774d28c05ceeb1ce723ae6228d3
2021-02-19touch: common: Add touch bus negotiator moduleTai Kuo
Touch bus negotiator is used for bus switching handshaking. Driver need to ensure the bus ownership before any spi transfer. Bug: 170687957 Bug: 173331067 Test: gpio handshake pins work. Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I8b2e3e87086e013d91c75cf3e306f231e0d99f3d