From eaa03aed7b48aab11c149480b5300c222a8c42ce Mon Sep 17 00:00:00 2001 From: Shaochan Liu Date: Tue, 18 Dec 2018 11:31:35 +0800 Subject: [PATCH] lcd: add lcd resume alarm filter function [1/1] PD#SWPL-3362 Problem: add lcd resume alarm filter function Solution: add lcd resume alarm filter function Verify: verified by t962x_r311 Change-Id: Ia4c219c76d253b4ecc16784193dc06a164d7a217 Signed-off-by: Shaochan Liu --- drivers/amlogic/media/vout/lcd/lcd_vout.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/amlogic/media/vout/lcd/lcd_vout.c b/drivers/amlogic/media/vout/lcd/lcd_vout.c index ffff538..10db108 100644 --- a/drivers/amlogic/media/vout/lcd/lcd_vout.c +++ b/drivers/amlogic/media/vout/lcd/lcd_vout.c @@ -36,6 +36,7 @@ #ifdef CONFIG_OF #include #endif +#include #include #include #include @@ -1459,6 +1460,10 @@ static int lcd_remove(struct platform_device *pdev) static int lcd_resume(struct platform_device *pdev) { + if ((get_resume_method() == RTC_WAKEUP) || + (get_resume_method() == AUTO_WAKEUP)) + return 0; + if ((lcd_driver->lcd_status & LCD_STATUS_VMODE_ACTIVE) == 0) return 0; -- 2.7.4