From 96a3556ea515679dabbbf8c28e304e24c74efbeb Mon Sep 17 00:00:00 2001 From: Shaochan Liu Date: Thu, 3 Jan 2019 14:57:23 +0800 Subject: [PATCH] lcd: The panel's backlight is not stable with VAD enabled platform [1/1] 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 --- drivers/amlogic/media/vout/lcd/lcd_vout.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/vout/lcd/lcd_vout.c b/drivers/amlogic/media/vout/lcd/lcd_vout.c index cab43cb3b124..959e00fd1d35 100644 --- a/drivers/amlogic/media/vout/lcd/lcd_vout.c +++ b/drivers/amlogic/media/vout/lcd/lcd_vout.c @@ -1420,8 +1420,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)