summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKrishna Chaitanya Parimi <cparimi@codeaurora.org>2013-12-30 09:32:58 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:24:55 -0700
commit033ee7261a03ca14adfc2a46c7afa8d2938997d7 (patch)
treed751e33b931171d88571624cc3df89a0734e79bd /drivers
parente4c2ced1f686a2764a220b6decbe59b7d07f07b1 (diff)
msm: mdss: Returning NOTIFY_SUSPEND while polling NOTIFY_UPDATE
mdss_fb_update_notify does not return Suspend in NOTIFY_UPDATE case. Daemon polls on NOTIFY_UPDATE but does not get Suspend notification. Hence Daemon would not stop polling. Suspend Case is added in UPDATE case. Change-Id: Iaeaf819a6849acda2eb7eb78f0fc3306866d1b64 Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/msm/mdss_fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c
index 1914d264ecb9..276de9924fb3 100644
--- a/drivers/video/fbdev/msm/mdss_fb.c
+++ b/drivers/video/fbdev/msm/mdss_fb.c
@@ -128,6 +128,10 @@ static int mdss_fb_notify_update(struct msm_fb_data_type *mfd,
ret = wait_for_completion_interruptible_timeout(
&mfd->update.comp, 4 * HZ);
to_user = (unsigned int)mfd->update.value;
+ if (mfd->update.type == NOTIFY_TYPE_SUSPEND) {
+ to_user = (unsigned int)mfd->update.type;
+ ret = 1;
+ }
} else if (notify == NOTIFY_UPDATE_STOP) {
INIT_COMPLETION(mfd->no_update.comp);
ret = wait_for_completion_interruptible_timeout(