summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMason Wang <masonwang@google.com>2022-11-11 09:55:27 +0800
committerMason Wang <masonwang@google.com>2022-11-14 03:57:31 +0000
commitfed2f97c4fe124fb69dc32fa9d2bd223e30647d5 (patch)
tree43e60b128cf4b1efa203c59b1e6374834ee13a8e
parentc71f2363a274fd03b243451f66cae39d41ff249f (diff)
downloadfocaltech_touch-fed2f97c4fe124fb69dc32fa9d2bd223e30647d5.tar.gz
touch/focaltech: Access the SPI bus regardless of TBN error
The TBN error is including timeout witch is caused by the AOC wake-up gesture driver does not reply the ACK in time, but SPI would be ready for kernel touch driver. Bug: 257076750 Test: Touch basic operation and wake-up gesture work well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I0b992372dd3ac179d28ec9bda0805606ba38aee1 Merged-In: I0b992372dd3ac179d28ec9bda0805606ba38aee1 (cherry picked from commit 3341d5c94af2162c934f93fa3e03c08688f3fdc9)
-rw-r--r--ft3658/focaltech_core.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ft3658/focaltech_core.c b/ft3658/focaltech_core.c
index c2a59d7..d778ce7 100644
--- a/ft3658/focaltech_core.c
+++ b/ft3658/focaltech_core.c
@@ -2610,9 +2610,8 @@ static void fts_suspend_work(struct work_struct *work)
#endif
#if IS_ENABLED(CONFIG_TOUCHSCREEN_TBN)
if (ts_data->tbn_register_mask) {
- int ret = tbn_release_bus(ts_data->tbn_register_mask);
- if (ret == 0)
- ts_data->tbn_owner = TBN_AOC;
+ tbn_release_bus(ts_data->tbn_register_mask);
+ ts_data->tbn_owner = TBN_AOC;
}
#endif
mutex_unlock(&ts_data->device_mutex);
@@ -2628,9 +2627,8 @@ static void fts_resume_work(struct work_struct *work)
#if IS_ENABLED(CONFIG_TOUCHSCREEN_TBN)
if (ts_data->tbn_register_mask) {
- int ret = tbn_request_bus(ts_data->tbn_register_mask);
- if (ret == 0)
- ts_data->tbn_owner = TBN_AP;
+ tbn_request_bus(ts_data->tbn_register_mask);
+ ts_data->tbn_owner = TBN_AP;
}
#endif
#if IS_ENABLED(CONFIG_TOUCHSCREEN_PANEL_BRIDGE)