lcd: The panel's backlight is not stable with VAD enabled platform [1/1]
authorShaochan Liu <shaochan.liu@amlogic.com>
Thu, 3 Jan 2019 06:57:23 +0000 (14:57 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 8 Jan 2019 12:10:45 +0000 (04:10 -0800)
PD#SWPL-3713

Problem:
The panel's backlight is not stable when
enter standby mode after do suspend with
VAD enabled platform

Solution:
bypass undefind resume in lcd resume early

Verify:
verify by t962x2-x301

Change-Id: I8f040de9bebf3ccbdd3b2da3a46540fe676958f6
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
drivers/amlogic/media/vout/lcd/lcd_vout.c

index 8bfaba0..583b3e7 100644 (file)
@@ -1461,8 +1461,12 @@ static int lcd_remove(struct platform_device *pdev)
 
 static int lcd_resume(struct platform_device *pdev)
 {
+       if (lcd_debug_print_flag)
+               LCDPR("resume method: %d\n", get_resume_method());
+
        if ((get_resume_method() == RTC_WAKEUP) ||
-               (get_resume_method() == AUTO_WAKEUP))
+               (get_resume_method() == AUTO_WAKEUP) ||
+               (get_resume_method() == UDEFINED_WAKEUP))
                return 0;
 
        if ((lcd_driver->lcd_status & LCD_STATUS_VMODE_ACTIVE) == 0)