From 7a0ea40cb7287da9c9d364e4e73bb1dc0c597a34 Mon Sep 17 00:00:00 2001 From: Shashank Babu Chinta Venkata Date: Mon, 9 Nov 2020 17:59:31 -0800 Subject: [PATCH] input: touchscreen: st: cancel pending firmware update Cancel pending firmware delayed work during the disable sequence since hardware is already released to PVM. Change-Id: Ie66c4a5dfe81219e034ae1aea01c0e2a76fa4903 Signed-off-by: Shashank Babu Chinta Venkata --- drivers/input/touchscreen/st/fts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/st/fts.c b/drivers/input/touchscreen/st/fts.c index 89549315d215..e65bc7094673 100644 --- a/drivers/input/touchscreen/st/fts.c +++ b/drivers/input/touchscreen/st/fts.c @@ -581,6 +581,8 @@ static void fts_trusted_touch_tvm_vm_mode_disable(struct fts_ts_info *info) fts_trusted_touch_abort_tvm(info); return; } + /* cancel firmware update work if pending */ + cancel_delayed_work_sync(&info->fwu_work); fts_interrupt_disable(info); fts_trusted_touch_set_tvm_driver_state(info,