lcd: optimize unifykey read flow to avoid crash [1/1]

PD#SWPL-4682

Problem:
lcd wait unifykey init timeout and read unifykey will crash

Solution:
incrase wait unifykey init time, and add read protection

Verify:
x301

Change-Id: Ib86a2b3b0c6c1491606404358420fd213dcfdaa8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_common.h
	drivers/amlogic/media/vout/lcd/lcd_tcon.c
	drivers/amlogic/media/vout/lcd/lcd_vout.c
This commit is contained in:
Evoke Zhang
2019-01-10 22:21:01 +08:00
committed by Dongjin Kim
parent 7450034217
commit 2968992a4b
4 changed files with 147 additions and 94 deletions

View File

@@ -18,7 +18,8 @@
#ifndef _INC_AML_LCD_UNIFYKEY_H__
#define _INC_AML_LCD_UNIFYKEY_H__
#define LCD_UNIFYKEY_WAIT_TIMEOUT 300
#define LCD_UNIFYKEY_WAIT_TIMEOUT 500
#define LCD_UNIFYKEY_RETRY_INTERVAL 20 /* ms */
/* declare external unifykey function */
extern void *get_ukdev(void);