From 3341d5c94af2162c934f93fa3e03c08688f3fdc9 Mon Sep 17 00:00:00 2001 From: Mason Wang Date: Fri, 11 Nov 2022 09:55:27 +0800 Subject: 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 Change-Id: I0b992372dd3ac179d28ec9bda0805606ba38aee1 --- ft3658/focaltech_core.c | 10 ++++------ 1 file 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) -- cgit v1.2.3