diff options
author | Mason Wang <masonwang@google.com> | 2022-11-11 09:55:27 +0800 |
---|---|---|
committer | Mason Wang <masonwang@google.com> | 2022-11-11 10:16:20 +0800 |
commit | 3341d5c94af2162c934f93fa3e03c08688f3fdc9 (patch) | |
tree | 43e60b128cf4b1efa203c59b1e6374834ee13a8e | |
parent | c71f2363a274fd03b243451f66cae39d41ff249f (diff) | |
download | focaltech_touch-3341d5c94af2162c934f93fa3e03c08688f3fdc9.tar.gz |
touch/focaltech: Access the SPI bus regardless of TBN errorandroid-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-gs-raviole-5.10-t-qpr2-beta-1android-gs-bluejay-5.10-t-qpr2-beta-1
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
-rw-r--r-- | ft3658/focaltech_core.c | 10 |
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) |