diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c index 3be2cbe34f9d..160a242e8a1d 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c +++ b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c @@ -336,6 +336,8 @@ static int gsx_gesture_init(struct goodix_ts_core *cd, /*enable all gesture wakeup by default */ gsx->ts_core->gesture_type = GESTURE_SINGLE_TAP |GESTURE_FOD_PRESS; cd->zerotap_data[0] = 0; + //default on the fod event + cd->fod_enable = true; atomic_set(&gsx_gesture->registered, 1); return 0; } diff --git a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c index 40e7bdc5b850..f7cb7e7357b2 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c +++ b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c @@ -270,7 +270,9 @@ static void ts_mmi_queued_resume(struct ts_mmi_dev *touch_cdev) touch_cdev->delay_baseline_update = false; } } - + if (touch_cdev->pdata.fod_detection) { + TRY_TO_CALL(update_fod_mode, touch_cdev->fps_state); + } if (NEED_TO_SET_POWER) { /* power turn on in PANEL_EVENT_PRE_DISPLAY_ON. * IC need some time to boot up.