From fde09f4c60d7c7263953bef3c6972e221360bdbe Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Tue, 18 Jan 2022 17:51:39 +0800 Subject: [PATCH] DLKM/fps:optimise focal driver focal modify event interface to send screen status Change-Id: I85243ca523276e1bd53ca89807078aae3d1aaf8b Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2173256 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yan Zhang Reviewed-by: Tao Sun Submit-Approved: Jira Key --- drivers/input/misc/focal_fps_mmi/ff_ctl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/focal_fps_mmi/ff_ctl.c b/drivers/input/misc/focal_fps_mmi/ff_ctl.c index 3abe3e6631ea..f594fdc86a42 100644 --- a/drivers/input/misc/focal_fps_mmi/ff_ctl.c +++ b/drivers/input/misc/focal_fps_mmi/ff_ctl.c @@ -359,9 +359,11 @@ static int ff_ctl_fb_notifier_callback(struct notifier_block *nb, unsigned long uevent_env[0] = "FF_SCREEN_??"; break; } - uevent_env[1] = NULL; - kill_fasync(&g_context->async_queue, SIGIO, POLL_IN); - FF_LOGD("chenlj2 leave.%s",uevent_env[0]); + if(blank == DRM_PANEL_BLANK_UNBLANK || blank== DRM_PANEL_BLANK_POWERDOWN) { + uevent_env[1] = NULL; + kobject_uevent_env(&g_context->miscdev.this_device->kobj, KOBJ_CHANGE, uevent_env); + FF_LOGD("'%s' leave %s.", __func__,uevent_env[0] ); + } #else /* CONFIG_DRM_PANEL_NOTIFICATIONS */ #if defined(CONFIG_PANEL_NOTIFICATIONS) char *uevent_env[2];