summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0505340)
raw | patch | inline | side by side (parent: 0505340)
author | Sergiy Kibrik <sergiy.kibrik@globallogic.com> | |
Thu, 28 Feb 2013 17:45:42 +0000 (19:45 +0200) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Fri, 12 Jul 2013 22:28:59 +0000 (17:28 -0500) |
When device is not active we can't register VSYNC isr, but
must explicitly notify about it, so caller can handle error
and not wait for VSYNC that never happens.
Change-Id: Idc83d8bdc6b8c590fee6dd916717871455c12efd
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
must explicitly notify about it, so caller can handle error
and not wait for VSYNC that never happens.
Change-Id: Idc83d8bdc6b8c590fee6dd916717871455c12efd
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
drivers/video/omap2/omapfb/omapfb-ioctl.c | patch | blob | history |
index 87d61811e4b65fc2ae5926ebdd11399430e2f5b9..27d7d033f372ff0c4f74e48cb68a88e01df5b701 100644 (file)
omapfb_lock(fbdev);
fbdev->vsync_active = !!p.crt;
-
- if (display->state == OMAP_DSS_DISPLAY_ACTIVE) {
- if (p.crt)
+ if (p.crt)
+ if (display->state == OMAP_DSS_DISPLAY_ACTIVE)
omapfb_enable_vsync(fbdev, display->channel,
true);
else
- omapfb_enable_vsync(fbdev, display->channel,
- false);
- }
+ r = -EBUSY;
+ else
+ omapfb_enable_vsync(fbdev, display->channel,
+ false);
omapfb_unlock(fbdev);
break;