]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: OMAPLFB: remove early_suspend handling
authorSergiy Kibrik <sergiy.kibrik@globallogic.com>
Mon, 11 Mar 2013 15:34:24 +0000 (17:34 +0200)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:45:11 +0000 (17:45 -0500)
omaplfb can handle only suspend/resume of just one display
attached to framebuffer, thus can't suspend secondary HDMI
display. Early_suspend/late_resume now handled by DSS core,
for each display without limitations, hence removing this code.

Change-Id: I3c30d618d7dfdba540920d3aac48ba96a21dc3e2
Signed-off-by: Sergiy Kibrik <sergiy.kibrik@globallogic.com>
drivers/video/omap2/omaplfb/omaplfb_linux.c

index 235689fa9e8d342899f19c4482fb3c388e6f32c5..040ed5a1d5187add73d74ca462bef652e958dcde 100644 (file)
@@ -828,51 +828,6 @@ OMAPLFB_ERROR OMAPLFBUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo)
        return (OMAPLFB_OK);
 }
 
-#ifdef CONFIG_HAS_EARLYSUSPEND
-
-static void OMAPLFBBlankDisplay(OMAPLFB_DEVINFO *psDevInfo)
-{
-       OMAPLFB_CONSOLE_LOCK();
-       fb_blank(psDevInfo->psLINFBInfo, 1);
-       OMAPLFB_CONSOLE_UNLOCK();
-}
-
-static void OMAPLFBEarlySuspendHandler(struct early_suspend *h)
-{
-       unsigned uiMaxFBDevIDPlusOne = OMAPLFBMaxFBDevIDPlusOne();
-       unsigned i;
-
-       for (i=0; i < uiMaxFBDevIDPlusOne; i++)
-       {
-               OMAPLFB_DEVINFO *psDevInfo = OMAPLFBGetDevInfoPtr(i);
-
-               if (psDevInfo != NULL)
-               {
-                       OMAPLFBAtomicBoolSet(&psDevInfo->sEarlySuspendFlag, OMAPLFB_TRUE);
-                       OMAPLFBBlankDisplay(psDevInfo);
-               }
-       }
-}
-
-static void OMAPLFBEarlyResumeHandler(struct early_suspend *h)
-{
-       unsigned uiMaxFBDevIDPlusOne = OMAPLFBMaxFBDevIDPlusOne();
-       unsigned i;
-
-       for (i=0; i < uiMaxFBDevIDPlusOne; i++)
-       {
-               OMAPLFB_DEVINFO *psDevInfo = OMAPLFBGetDevInfoPtr(i);
-
-               if (psDevInfo != NULL)
-               {
-                       OMAPLFBUnblankDisplay(psDevInfo);
-                       OMAPLFBAtomicBoolSet(&psDevInfo->sEarlySuspendFlag, OMAPLFB_FALSE);
-               }
-       }
-}
-
-#endif 
-
 OMAPLFB_ERROR OMAPLFBEnableLFBEventNotification(OMAPLFB_DEVINFO *psDevInfo)
 {
        int                res;
@@ -903,13 +858,6 @@ OMAPLFB_ERROR OMAPLFBEnableLFBEventNotification(OMAPLFB_DEVINFO *psDevInfo)
                return eError;
        }
 
-#ifdef CONFIG_HAS_EARLYSUSPEND
-       psDevInfo->sEarlySuspend.suspend = OMAPLFBEarlySuspendHandler;
-       psDevInfo->sEarlySuspend.resume = OMAPLFBEarlyResumeHandler;
-       psDevInfo->sEarlySuspend.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1;
-       register_early_suspend(&psDevInfo->sEarlySuspend);
-#endif
-
        return (OMAPLFB_OK);
 }
 
@@ -917,11 +865,6 @@ OMAPLFB_ERROR OMAPLFBDisableLFBEventNotification(OMAPLFB_DEVINFO *psDevInfo)
 {
        int res;
 
-#ifdef CONFIG_HAS_EARLYSUSPEND
-       unregister_early_suspend(&psDevInfo->sEarlySuspend);
-#endif
-
-       
        res = fb_unregister_client(&psDevInfo->sLINNotifBlock);
        if (res != 0)
        {